Recreation websites directory - Discount Magazines - Personal Loans - Team Building - Cash for Surveys

PDA

View Full Version : syntax highlighting


nevetS
Mar 9th 2005, 10:15 am
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.

Josh
Mar 9th 2005, 10:18 am
http://www.php.net/highlight_file

:)

Josh

nevetS
Mar 9th 2005, 10:27 am
excellent. I never would have guessed the name of the function. :) <smacks head>

nevetS
Mar 9th 2005, 12:06 pm
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.