Can anyone compare this to CodeMirror which seems to include this functionality and much, much more?
CodeMirror is a "full" syntax highlighted code editor. This is just a syntax highlighter for embedding code examples in your site/blog.
PrismJS
11–20 of 26 posts
Re: PrismJS
#12Is there any particular advantage to using something like this for static code samples instead of just pre-rendering the HTML and CSS? I usually just export my code from Emacs via M-x htmlfontify-buffer which dumps a bunch of CSS and HTML. This also allows me to take advantage of my different Emacs themes. It also outputs CSS with good class names like "string" or "keyword". If you add your own custom faces, it just…
Re: PrismJS
#13Re: PrismJS
#14Earlier quoted context omitted.
CodeMirror is a "full" syntax highlighted code editor. This is just a syntax highlighter for embedding code examples in your site/blog.
Right, but CodeMirror can be used as a simply syntax highlighter as well.
Re: PrismJS
#15Re: PrismJS
#16someone please make a vim colorscheme that looks like the light scheme of prism. it is gorgeous
Re: PrismJS
#17Re: PrismJS
#18More important things to do?
Re: PrismJS
#19I don't think the author really understands IE usage patterns. The majority of IE6 usage isn't individuals who don't know better, its companies who should know better. Hence, you'll still get plenty of intelligent coders using IE.
Re: PrismJS
#20If you want an even smaller (sans jQuery) JS highlighter that doesn't fail on edge cases, check my jQueryJSH: http://www.phoboslab.org/files/jquery-jsh/ github: https://github.com/phoboslab/jQuery-JSH
2) Do you really need jQuery there? You seem to be using it only for the html method, and including 93K extra JS instead of just using innerHTML seems a bit overkill.