Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Language-sensitive syntax highlighter and intenter

SpaceshipSpaceship
Spacemail by SpaceshipSpacemail by Spaceship
Namecheap AuctionsNamecheap Auctions
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
This looks very promising, I'm reading over the documentation now, and this looks like exactly what I want. Thanks.
 
0
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Search: choose where to search from the All tab
Open the search at the top of any page. On the All tab, the list next to the search box lets you choose where to search: everything, all...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back