You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-97Lines changed: 8 additions & 97 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,14 @@ It is intended as a base for rich-text editors and code editors with syntax high
9
9
10
10
For a greater explanation of RichTextFX, its design principles, how it works, and how to style its areas via CSS, please [see the wiki](https://github.com/TomasMikula/RichTextFX/wiki)
11
11
12
+
Demos
13
+
-----
14
+
15
+
Stand-alone Applications that demonstrate some of the features of RichTextFX have been moved to their own folder [here](./richtextfx-demos/)
16
+
17
+
Table of Contents
18
+
-----------------
19
+
12
20
*[Who uses RichTextFX?](#who-uses-richtextfx)
13
21
*[Features](#features)
14
22
*[Flavors](#flavors)
@@ -18,11 +26,6 @@ For a greater explanation of RichTextFX, its design principles, how it works, an
18
26
*[StyleClassedTextArea](#styleclassedtextarea)
19
27
*[CodeArea (Base for code editors)](#codearea)
20
28
*[Requirements](#requirements)
21
-
*[Demos](#demos)
22
-
*[Highlighting of Java keywords](#automatic-highlighting-of-java-keywords)
23
-
*[XML Editor](#xml-editor)
24
-
*[Rich-text editor](#rich-text-editor)
25
-
*[Custom tooltips](#custom-tooltips)
26
29
*[Download](#download)
27
30
*[Stable](#stable-release)
28
31
*[Snapshot](#snapshot-releases)
@@ -129,98 +132,6 @@ Requirements
129
132
130
133
JDK 8u40 is recommended, because it fixes some text rendering bugs.
131
134
132
-
133
-
Demos
134
-
-----
135
-
136
-
### Automatic highlighting of Java keywords
137
-
138
-

139
-
140
-
#### Run using the pre-built JAR
141
-
142
-
[Download](https://github.com/TomasMikula/RichTextFX/releases/download/v0.7-M5/richtextfx-demos-fat-0.7-M5.jar) the pre-built "fat" JAR file and run
The former computes highlighting on the JavaFX application thread, while the latter computes highlighting on a background thread.
165
-
166
-
167
-
### XML Editor
168
-
169
-
Similar to the [Java Keywords](#automatic-highlighting-of-java-keywords) demo above, this demo highlights XML syntax. Courtesy of @cemartins.
170
-
171
-
#### Run using the pre-built JAR
172
-
173
-
[Download](https://github.com/TomasMikula/RichTextFX/releases/download/v0.7-M5/richtextfx-demos-fat-0.7-M5.jar) the pre-built "fat" JAR file and run

189
-
190
-
#### Run using the pre-built JAR
191
-
[Download](https://github.com/TomasMikula/RichTextFX/releases/download/v0.7-M5/richtextfx-demos-fat-0.7-M5.jar) the pre-built "fat" JAR file and run
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.
207
-
208
-

209
-
210
-
#### Run using the pre-built JAR
211
-
[Download](https://github.com/TomasMikula/RichTextFX/releases/download/v0.7-M5/richtextfx-demos-fat-0.7-M5.jar) the pre-built "fat" JAR file and run
Note: This page does not show all the demos in the package. Follow the instructions below to see them all.
5
+
6
+
### Table of Contents
7
+
8
+
*[Instructions for Running Demos](#instructions-for-running-demos)
9
+
*[Structure of the Demos package](#structure-of-the-demos-package)
10
+
* Some Demos
11
+
*[Rich-text editor](#rich-text-editor)
12
+
*[Highlighting of Java keywords](#automatic-highlighting-of-java-keywords)
13
+
*[XML Editor](#xml-editor)
14
+
*[Multiple Carets and Selections](#multiple-carets-and-selections)
15
+
*[Custom tooltips](#custom-tooltips)
16
+
17
+
### Instructions for running demos
18
+
19
+
1. Clone the repository: `git clone https://www.github.com/FXMisc/RichTextFX.git`
20
+
2. Checkout the latest release version: `git checkout v0.9.0`
21
+
3. See the list of demos using a gradle task `./gradlew demos`
22
+
4. Run a demo using a gradle task: `./gradlew [Demo Name]`
23
+
24
+
(For Windows users, replace `./gradlew` with `gradlew.bat` in the above commands)
25
+
26
+
### Structure of the Demos package
27
+
28
+
- Each runnable demo class that extends `Application` ends in the suffix: "Demo"
29
+
- 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. `RichTextDemo` is found in the `richtext` package)

62
+
63
+
### Custom tooltips
64
+
65
+
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.
0 commit comments