JEditorPane 中的语法高亮显示
我想在 jeditorpane 中进行标签突出显示。如果我在 jeditorpane 中加载 html 文件,那么它应该自动突出显示具有红色前景色的所有标签... 对于前。 &l tHTML >
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 >
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用优秀的 RSyntaxTextArea 组件取得了很大的成功。它也可以在 LGPL 许可证下使用。
I've had a lot of success using the excellent RSyntaxTextArea component. It's available under the LGPL license too.
您可以采用
You can either go