Class RSyntaxTextAreaEditorKit

All Implemented Interfaces:
Serializable, Cloneable

public class RSyntaxTextAreaEditorKit extends RTextAreaEditorKit
An extension of RTextAreaEditorKit that adds functionality for programming-specific stuff. There are currently subclasses to handle:
  • Toggling code folds.
  • Aligning "closing" curly braces with their matches, if the current programming language uses curly braces to identify code blocks.
  • Copying the current selection as RTF.
  • Block indentation (increasing the indent of one or multiple lines)
  • Block un-indentation (decreasing the indent of one or multiple lines)
  • Inserting a "code template" when a configurable key (e.g. a space) is pressed
  • Decreasing the point size of all fonts in the text area
  • Increasing the point size of all fonts in the text area
  • Moving the caret to the "matching bracket" of the one at the current caret position
  • Toggling whether the currently selected lines are commented out.
  • Better selection of "words" on mouse double-clicks for programming languages.
  • Better keyboard navigation via Ctrl+arrow keys for programming languages.
Version:
0.5
See Also: