NameSilo

Language-sensitive syntax highlighter and intenter

SpaceshipSpaceship
Watch

monaco

Established Member
Impact
10
Language-sensitive syntax highlighter and indenter

Does anyone know of a good syntax highlighter that is language sensitive that can output html? I want to set up a section on my site to showcase (and for code viewing on my software section) my code I've written in php, perl, java, etc. I'm looking for a script that will let me give it a filename containing a source code file, and will return a colored, pretty-indented html version of the code.

I could probably write this myself, but if there's already a solution out there, it would be easier.

Thanks,
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
You'd probably be able to use GeSHi. Unfortunately the site ( http://qbnz.com/highlighter/ ) seems to be down ATM, though there might be a mirror somewhere.
 
0
•••
This looks very promising, I'm reading over the documentation now, and this looks like exactly what I want. Thanks.
 
0
•••
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy — Zero Commission
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back