RSyntaxTextArea Versions Save

A syntax highlighting, code folding text editor for Java Swing applications.

3.4.0

2 months ago

Precompiled jars are available in Maven Central(com.fifesoft:rsyntaxtextarea:3.4.0).

Highlights

:gift: Customizable line numbering

Line numbering can now be customized beyond just font and color (#517, #518):

image

:gift: Rust support

Added Rust syntax highlighting and code folding (#481):

image

See also tickets marked for this release.

3.3.4

9 months ago

Precompiled jars are available in Maven Central(com.fifesoft:rsyntaxtextarea:3.3.4). This is a bugfix release.

Notable Changes

  • Fix #507: Add auto-indent support for Python and fix an NPE in its code folding. Also fixes #345, #512, and #514 (@awindillman).
  • Made some Gutter methods public (@DrDaleks)
  • Fix #493 Make 2 RTextArea methods public (@nbauma109)

See also tickets marked for this release.

3.3.3

1 year ago

Precompiled jars are available in Maven Central(com.fifesoft:rsyntaxtextarea:3.3.3). This is a bugfix release.

Notable Changes

  • Fix #497, Fix #499: ErrorStrip bugs with mouse clicks and y-location in the document
  • Fix #490: ClassCastException when cutting or copying text from an RTextArea
  • Fix #492: NPE with certain (broken) JDK 17 builds

See also tickets marked for this release.

3.3.2

1 year ago

Precompiled jars are available on SourceForge and Maven (com.fifesoft:rsyntaxtextarea:3.3.2). This release is a bugfix release. All clients should upgrade to 3.3.2 as 3.3.1 was horribly broken (a bug was introduced that caused inserting newlines to corrupt the editor content in many situations).

Notable Changes

  • Fix #484: InsertBreakAction completely broken when in the middle of a line in 3.3.1
  • Fix #483: Umlauts and other diacritics cause wrong line wrap
  • Fix #482 SearchEngine.replace() should set the wrap flag when appropriate

See also tickets marked for this release.

3.3.1

1 year ago

Precompiled jars are available on SourceForge and Maven (com.fifesoft:rsyntaxtextarea:3.3.1). This release adds a few cool new features, and also improves keyboard shortcuts on macOS.

Highlights

:gift: Handlebars syntax highlighting

Syntax highlighting has been added for Handlebars files (#419).

:gift: Improved highlighting of imported files for C and C++

Previously, includes were rendered differently for "string.h" style vs <system> style includes. They are now rendered in the same fashion (#461):

:gift: Smarter string support

When the opening quote of a string is typed, the closing quote is now also inserted. The editor smartly overtypes the closing quote when appropriate, and ignores escaped quotes appropriately. This feature can be disabled by calling setInsertPairedCharacters(false) (#473).

:gift: Smarter paren and bracket support

When typing a quote, paren, or bracket, if there is a selection, the selected text is enclosed in the expected opening and closing character. This is meant to quickly quote text, or put it in parenthesis. This feature can be disabled by calling setInsertPairedCharacters(false) (#466).

Notable Changes

  • Fix #461: [Bug]: C/C++: Highlight the import files
  • Fix #419: Handlebars syntax highlighting
  • Fix #466: Auto wrap selected text in quotes and parens
  • Fix #469: setClearWhitespaceLinesEnabled doesn't work if auto-indent is disabled
  • Fix #473: Automatically insert closing quote for string literals in languages that support it
  • Fix #475: Improved caret behavior on first and last lines
  • Fix #476: macOS: Wrong shortcut for "delete previous word"

See also tickets marked for this release.

3.3.0

1 year ago

Precompiled jars are available on SourceForge and Maven (com.fifesoft:rsyntaxtextarea:3.3.0). This release brings the following changes:

Highlights

:gift: Modern fold icon appearance

Added a new, modern appearance for the code folding region of the gutter, mimicking editors such as VS Code. The appearance of the code folding region can be toggled back to the previous, "classic" appearance, or further customized to your own liking, via the API:

"Modern" style
"Classic" style

:gift: "Armed" fold icon color

Theme and API support allow for specifying a different color for "armed" code folds. This results in a more visually pleasing, interactive UI. All built-in themes have been modified to take advantage of this feature (#460):

:gift: Protobuf syntax highlighting and code folding

Added protobuf syntax highlighting and code folding support (#446):

:gift: Ruby syntax highlighting improvements

Ruby saw some small syntax highlighting improvements (#448, #449):

Notable Changes

  • Fix #449: (Ruby) Add missing Ruby keywords
  • Fix #448: (Ruby) Square brackets aren't supported in bracket matching
  • Fix #450: Add several missing MacOS keyboard shortcuts
  • Fix #446: Add Protobuf syntax highlighting and code folding
  • Fix #456: Setting the fold icon background color doesn't take effect immediately
  • Fix #453: (JavaScript) Keyword of is not syntax highlighted
  • Fix #454: Support Parsers that can't parse line by line
  • Fix #458: Modernize the fold icon appearance. Add toggle between the "classic" and "modern" appearances
  • Fix #459: Add API to hide expanded folds except on hover
  • Fix #443: Hyperlinks stoped working on 3.1.0+ (thanks @ThexXTURBOXx)
  • Fix #441: Control+Click opens popup on MacOS rather than going to definition
  • Fix #460: Support different foreground color for armed fold icons

See also tickets marked for this release.

3.2.0

2 years ago

Precompiled jars are available on SourceForge and Maven (com.fifesoft:rsyntaxtextarea:3.2.0). This release brings the following changes:

Highlights

:gift: Configurable "active" line number color

The color used for the line number of the currently active line is now configurable programamatically and via the Theme API (#414, #426):

image

:gift: Mouse selection improvements

Double-click and triple-click-and-drag should increase the selection by word and by line, respectively (#59):

image

Notable Changes

  • Fix #414: Make Gutter's "active" line number color configurable programmatically (thanks @omegaui)
  • Fix #426: Make Gutter's "active" line number color configurable via the Theme API
  • Fix #424: Unit tests should run cleanly when running headlessly
  • Fix #59: Double-click and triple-click-and-drag should increase the selection by word and by line, respectively
  • Fix #434: CI builds should build on multiple Java versions (currently 8, 11, 14, 17) to sniff out possible future issues
  • Fix #206: Custom TokenMaker does not take effect with some Document/RSTA constructor orders
  • Fix #149: Mark occurrences problem with line wrap is enabled
  • Fix #428: Fix BLE in SearchEngine (thanks @paul-griffith)
  • Fix #438: TokenImpl.isComment() is not correctly identifying comment tokens in markup languages
  • Fix #425: Add Automatic-Module-Name (thanks @boessu)

See also tickets marked for this release.

3.1.6

2 years ago

Precompiled jars are available on SourceForge and Maven (com.fifesoft:rsyntaxtextarea:3.1.6). This release brings the following changes:

  • Fixing the appearance of FocusableTip in FlatLaf
  • Fix #420: Add text block support to Java syntax highlighting
  • Fix #421: Add syntax highlighting for new Java keywords (thanks @ThexXTURBOXx)
  • Add missing file extensions for Dockerfile, Groovy and others to FileTypeUtil (thanks @ThexXTURBOXx)
  • Add \s as a new escape sequence in Java, per JLS 17

See also tickets marked for this release.

3.1.5

2 years ago

Precompiled jars are available on SourceForge and Maven (com.fifesoft:rsyntaxtextarea:3.1.5). This release brings the following changes:

  • Fix #415: Add FileTypeUtil class to support sniffing out the syntax highlighting to use for a file

See also tickets marked for this release.

3.1.4

2 years ago

Precompiled jars are available on SourceForge and Maven (com.fifesoft:rsyntaxtextarea:3.1.4). This release brings the following changes:

  • Fix invalid ParserManager state when first constructed (thanks @derSascha)
  • Fix #391: markedOccurrencesDelay and Color should persist when marked occurrences is disabled and re-enabled
  • Fix FocusHotkey French translation (thanks @ebourg)
  • Fix #390: Fix bugginess in HyperlinkEvents. LinkGenerators should only be triggered on 'activated' events, not 'entered' events
  • Fix #395: RSyntaxTextArea.setFont() should update the matched-bracket rendering if necessary
  • Fix Error Strip's Marker Position, when LineCount less than maximum possible lines according to VisualRec (thanks @manticore-projects)
  • Fix #399: Makefile syntax highlighting should allow '-' in labels
  • Fix #401: SearchEngine.replaceAll() should ignore 'wrap' flag
  • Fix html format for text area with background image (thanks @dzmipt)
  • Adding an action to cut as styled text (thanks @dzmipt)
  • Update syntaxEditingStyle in alternate constructor (thanks @Jakobeha)
  • Fix #409: Markdown: correctly highlight snake_case identifiers
  • Defaulting styled copy/cut action for RSyntaxTextArea. Updating style for html converter (thanks @dzmipt)
  • Fix #410: Add a gradle task to run the main RSTA demo
  • Fix FocusableTip's size grip rendering on OS X when in dark mode
  • Fix #404: Down arrow key leaves garbage when rendering on OS X in some situations
  • Adding URL highlighting and clickability to Ruby

See also tickets marked for this release.