1
votes

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!

1

1 Answers

1
votes

You can try rsyntaxtextarea.

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