Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

syntax highlighting in JEditorPane

i want to do tag hightlighting in jeditorpane. if i load a html file in jeditorpane then it should automatically highlight all tags with red foreground color... for ex. &l tHTML &gt

like image 349
Suraj Air Avatar asked Dec 12 '25 18:12

Suraj Air


2 Answers

I've had a lot of success using the excellent RSyntaxTextArea component. It's available under the LGPL license too.

like image 175
arooaroo Avatar answered Dec 15 '25 09:12

arooaroo


You can either go

  • The JEdit way
  • Check some google code project
  • Or go see what Kiril thinks about it.
like image 28
Riduidel Avatar answered Dec 15 '25 09:12

Riduidel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!