简体   繁体   中英

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. It should output HTML of the highlighted text + optionally CSS to support it.

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. I know there are plenty of these around. I need a server-side solution.

Any help will be greatly appreciated!

You can try rsyntaxtextarea .

There is also jhighlight , but their page gives a 404. See here for some details about jhightlight

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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