Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

9
  • 2
    I have a slight hunch that a dev from Stackoverflow might have worked on Prettify and that they might find this a bit insulting.
    – mowwwalker
    Commented Mar 23, 2012 at 1:10
  • 2
    Cody pretty much answered this: there's really no reason to switch on a whim, especially considering the time invested in integrating Prettify. But you should also consider that this is a bit of code that needs to be both small and extremely fast - it runs on every page, and some pages have... A lot of code on them. Locking up someone's browser for a few extra features won't fly.
    – Shog9
    Commented Mar 23, 2012 at 3:02
  • 1
    Maybe it just wasn't updated because nothing needs to be updated :)
    – user138231
    Commented Mar 23, 2012 at 4:23
  • @Chichiray : The 'README' page states that "It works passably on Ruby, PHP, VB, and Awk and a decent subset of Perl and Ruby, but, because of commenting conventions, doesn't work on Smalltalk, or CAML-like languages." - - So, there's definitely scope for some betterment.
    – its_me
    Commented Mar 23, 2012 at 4:57
  • 2
    @Shog9: Looking at softwaremaniacs.org/blog/2011/05/22/highlighters-comparison/en I see a case for highlight.js being faster and thus a better choice for SE. With more languages supported (63 as of the latest version), better support for mixing languages (JS in HTML is fully supported) and higher speed, isn't it time for highlight.js to be given some thought? Commented Nov 7, 2013 at 14:44
  • @MartijnPieters Is SO still using Google Prettify? Commented Nov 16, 2014 at 19:08
  • @RobertMallow: yes, nothing has changed there. Commented Nov 16, 2014 at 21:54
  • @MartijnPieters thanks. Commented Nov 16, 2014 at 21:59
  • Official answer was given on a newer request. Commented May 25, 2016 at 5:49