Note: This page does not show all the demos in the package. Follow the instructions below to see them all.
- Clone the repository:
git clone https://www.github.com/FXMisc/RichTextFX.git - Checkout the latest release version:
git checkout tagNamewhere tagName is the latest release tag (usegit tagto get a list of available tags, and use the last one) - See the list of demos using a gradle task
./gradlew demos - Run a demo using a gradle task:
./gradlew [Demo Name]
(For Windows users, replace ./gradlew with gradlew.bat in the above commands)
- Each runnable demo class that extends
Applicationends in the suffix: "Demo" - If a demo requires additional classes that should not be nested, the demo and its helper classes appear in their own package named after the demo (e.g.
RichTextDemois found in therichtextpackage)
Source Code: RichTextDemo.java
Source Code:
The former computes highlighting on the JavaFX application thread, while the latter computes highlighting on a background thread.
Similar to the Java Keywords demo above, this demo highlights XML syntax. Courtesy of @cemartins.
Source Code: XMLEditorDemo.java
Source Code: MultiCaretAndSelectionDemo.java
When the mouse pauses over the text area, you can get index of the character under the mouse. This allows you to implement, for example, custom tooltips whose content depends on the text under the mouse.
Source Code: TooltipDemo.java




