Code Monkey home page Code Monkey logo

rtext's Introduction

RText is a programmer's text editor written in Java. It has all the features you would expect:

  • Syntax highlighting for 40+ languages
  • Code folding
  • Regex search and replace
  • Find/replace in files
  • Varying degrees of code completion for C, Java, Perl, JavaScript, and more
  • Varying degrees of syntax checking for various languages (JSHint integration for JavaScript, compiler checking for Perl, XML well-formedness checking, etc.)
  • Programmatic macros, write them in either JavaScript or Groovy
  • Application lifecycle (bootstrap, plugin loading, cleanup, shutdown)
  • Preference loading and saving
  • User-configurable key bindings
  • Standard modals for Options, Help, About, Printing
  • File chooser (richer feature set and improved usability over JFileChooser)
  • Dockable windows
  • External tools
  • Much more

Building

RText uses Gradle to build. To compile, run all unit tests, and create the jar, and run:

./gradlew build installDist
java -jar build/install/rtext/RText.jar

Note that RText requires Java 11 or later to build.

Building the Windows application and installer

To create the Windows version of the application, run the generateWindowsStarterExe task in addition to installDist. This ensures a trimmed-down JRE is generated, and a starter RText.exe file is added into build/install/rtext:

./gradlew build installDist generateWindowsStarterExe

The generateWindowsStarterExe task uses a JDK 11 install and launch4j as defined in gradle.properties.

After building the installable image, you can create the win32 installer by running the MakeRTextInstaller.nsi NSIS script at the root of the project.

Building the OS X application

Building the OS X package is a little wonky at the moment. I am working on finding the best way to build an App bundle via Gradle. It doesn't seem like there is a good way to do it as of Java 11+. Previously, the easiest way to do so was:

./gradlew clean build installDist
vi build.gradle
<un-comment the macAppBundle plugin at the top and config at the bottom>
./gradlew createApp
cp -R ./build/install/rtext ./build/macApp/RText.app/Contents/
mv ./build/macApp/RText.app/Contents/rtext ./build/macApp/RText.app/Contents/Java

This used to create a functional RText.app, but note the application icon is not correct yet.

rtext's People

Contributors

bobbylight avatar

Watchers

Evrim ÜLGEN avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.