问题
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 >
回答1:
I've had a lot of success using the excellent RSyntaxTextArea component. It's available under the LGPL license too.
回答2:
You can either go
- The JEdit way
- Check some google code project
- Or go see what Kiril thinks about it.
来源:https://stackoverflow.com/questions/3635606/syntax-highlighting-in-jeditorpane