syntax highlighting

Discussion in 'HTML & Website Design' started by nevetS, Mar 9, 2005.

  1. #1
    It seems to me there is a way that php will auto-syntax highlight a file for you.

    How is that done?

    Or are there code wrappers that can be used to display code un-interpreted?

    I've done it before, I just don't remember how.
     
    nevetS, Mar 9, 2005 IP
  2. Josh

    Josh Peon

    Messages:
    893
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    0
  3. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #3
    excellent. I never would have guessed the name of the function. :) <smacks head>
     
    nevetS, Mar 9, 2005 IP
  4. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #4
    found another way...

    http://qbnz.com/highlighter/

    the phps or highlight_file method only highlights php. Geshi will do several other languages. Thought I would post here for any others who happen to be searching later on.
     
    nevetS, Mar 9, 2005 IP