简体   繁体   English

语法标注工具服务器端Java库

[英]Syntax Highlighter server-side Java library

I'm looking for a multi-language syntax highlighting solution that works on the server side, not on client side. 我正在寻找一种适用于服务器端而不是客户端的多语言语法突出显示解决方案。 It should support at least XML, HTML, Java and PHP source code highlighting, and be preferably open-source and written in Java. 它至少应支持XML,HTML,Java和PHP源代码突出显示,并且最好是开源的并用Java编写。 It should output HTML of the highlighted text + optionally CSS to support it. 它应该输出突出显示的文本的HTML +支持CSS的CSS(可选)。

Something like this must already exist? 这样的东西一定已经存在了吗? But I can't seem to be able to find it.. 但我似乎无法找到它。

Note: I do NOT need a javascript solution like the google's prettify.js. 注:我不需要像谷歌的prettify.js一个JavaScript的解决方案。 I know there are plenty of these around. 我知道周围有很多。 I need a server-side solution. 我需要一个服务器端解决方案。

Any help will be greatly appreciated! 任何帮助将不胜感激!

You can try rsyntaxtextarea . 您可以尝试rsyntaxtextarea

There is also jhighlight , but their page gives a 404. See here for some details about jhightlight 也有jhighlight ,但他们的页面提供了404。有关jhightlight的详细信息,请参见此处

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM