Apache handler to add color syntax ??

Status
Not open for further replies.
Take something like the following:

https://librelamp.com/sshd-dh-monthly.sh.txt

Is there a perl script or something that I can add as a handler to apache - e.g. via

Code:
AddType application/x-syntax-highlight .foo

that will eat a text file containing code and spit out an html file containing syntax highlight version of same code?

Similar to what .phps does for PHP?

What I like to do is use an object tag to embed things like that within the webpage, it would be nice to have it embed syntax highlight html version opposed to plain text (with link that is downloaded as plain text)

I'm guessing something already exists.

Thanks for suggestions
 
Status
Not open for further replies.