syntax highlighting in JEditorPane

人走茶凉 提交于 2019-12-23 20:04:54

问题


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


回答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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!