Reputation: 4942
Ok so I've tried out the seemly most popular syntax highlighter that seems to be out there
http://alexgorbatchev.com/SyntaxHighlighter/
but the file size is quite large, it seems a little heavy to include it and the format of the highlighted code I feel looks ugly.
Is there any alternative?
Upvotes: 0
Views: 160
Reputation: 4942
Thanks for the answers I had a look at those highlighters,. I like rainbows lightweight ness. But not a fan of the styling. And Google's Prettify is good although double the file size of rainbow. In the end I decided to whip up my own. If anyones interested I put a version up on bitbucket.
https://bitbucket.org/SharkAttack/syntax-highlighter
Upvotes: -1
Reputation: 37
Rainbow's light weight and works nicely.
There's a few out there, google's your friend (I'm only able to post two hyperlinks, sorry! Otherwise, I'd post more that I found.)
Here's another link I found:
Hope you find one of them useful.
Upvotes: 2
Reputation: 171
Google's Prettify is slightly smaller and lighter but a syntax highlighter that runs in JavaScript is inherently large, especially if it has to support many languages. One option is to run something server-side like Pygments but that's a little harder to setup depending on what you're doing.
Upvotes: 2