ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Syntax Highlighter

June 23, 2009 1:32pm

Subscribe [3]
  • #1 / Jun 23, 2009 1:32pm

    ZeroGodForce

    3 posts

    I know its completely random, but I wondered if any of the forum team (or anyone else) could tell me where to get that nifty syntax highlighting script that gets applied to code a la:

    if($shoesize = true) 
    { 
        wear(); 
    }

    I know there are a few popular ones out there for web pages but rather like this one, and I’ve seen the exact same script on a few other sites but I can’t find out who wrote it or where to get it!

    Cheers!

  • #2 / Jun 23, 2009 6:24pm

    Pascal Kriete

    2589 posts

    Pssst, don’t tell anyone, but it’s actually a php function.

    If you’re using CI, the highlight_code function in the text helper will do all the important ancillary work.

  • #3 / Jun 23, 2009 8:05pm

    ZeroGodForce

    3 posts

    GET OUT!? That’s awesome!

    Wow, both shocking aaand embarrassing; I had no idea! 

    Well, very useful to know.  Thanks Pascal!

  • #4 / Jun 24, 2009 1:30pm

    Michael Wales

    2070 posts

    Google also offers one that is language independent and works pretty well (it’s what Stack Overflow uses).

  • #5 / Jul 17, 2009 3:58pm

    ZeroGodForce

    3 posts

    Nifty! Thanks 😊

  • #6 / Jul 27, 2009 10:31am

    ZeroGodForce

    3 posts

    I just realised your the drunken codeigniter guy! Dude that was excellent!!!

  • #7 / Jul 29, 2009 6:14am

    Milos Dakic

    114 posts

    I like the colors of the Google Code highlighter. Would love to get that theme for TextMate.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases