https://github.com/bobbylight/RText
A syntax highlighting, code folding, programmer's text editor written in Swing. http://bobbylight.github.io/RText/
https://github.com/bobbylight/RText
Last synced: about 1 year ago
JSON representation
A syntax highlighting, code folding, programmer's text editor written in Swing. http://bobbylight.github.io/RText/
- Host: GitHub
- URL: https://github.com/bobbylight/RText
- Owner: bobbylight
- License: bsd-3-clause
- Created: 2013-09-29T19:04:31.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2023-08-12T15:42:40.000Z (almost 3 years ago)
- Last Synced: 2024-11-14T22:14:35.352Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 61.4 MB
- Stars: 87
- Watchers: 6
- Forks: 21
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RText


RText is a programmer's text editor written in Java. It has all the features
you would expect:
* Syntax highlighting for 50+ 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](https://jshint.com/)
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](https://gradle.org/) 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 21 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 clean build installDist generateWindowsStarterExe
The `generateWindowsStarterExe` task uses a JDK 21 install and `launch4j` as defined in
`gradle.properties`.
Note this gradle task runs `jlink` directly and uses `launch4j` rather than using
`jpackage` directly since our app needs loose files and `jpackage` seems to require
all files being wrapped into the generated .exe. This is different than our OS X
app task (discussed below) which uses `jpackage`.
After building the installable image, you can create the win32 installer by
running the `MakeRTextInstaller.nsi` [NSIS](https://nsis.sourceforge.io/Main_Page)
script at the root of the project.
### Building the OS X application
Building the OS X package has just been revamped. To build the .app bundle into
`build/install/RText-.dmg`:
./gradlew clean build generateMacApp
The generated `RText-.dmg` can be used to install `RText.app` to the Applications
folder. Note that this app currently isn't signed, so Gatekeeper will likely prevent
you from installing. In order to get around this you'll need to tweak your security
policy to allow installing of apps from outside the App Store.