Syntax highlighting in JEditorPane

I want to make a tag shortcut in jeditorpane. if I upload an html file to jeditorpane, then it should automatically highlight all tags with red foreground color ... e.g. & tHTML &

+3
source share
2 answers

I had great success using the excellent RSyntaxTextArea component. It is also available under the LGPL license.

+4
source

You can either go

+2
source

Source: https://habr.com/ru/post/1436039/


All Articles