Previously in Swing, I have used the JSyntaxPane for making a tiny Java source editor. For practice, I decided to redo the entire project in JavaFX and adding suppo
JSyntaxPane
There's RichTextFX which lets you do the highlighting. Check out the Java Keywords example.
Note that it requires JDK8.