tags:

views:

53

answers:

4

i want to show a part of my source code with color coding in a div for allowing users to get reference of code..now how can i show the actual php jquery or any other language source code with colors in a div.

+2  A: 

Use SyntaxHighlighter

Amarghosh
You're linke doesn't work. I think you meant this one: http://code.google.com/p/syntaxhighlighter/?
jigfox
The link works perfectly...
jfoucher
that's funny, now it's working for me too. Just 2 min ago it was a link to http://SyntaxHighlighter/
jigfox
@Jens I fixed it within seconds - you were faster I guess. And yeah, the link you posted has a link to Alex's page that I posted.
Amarghosh
+1  A: 

Hi,

You can use geshi for that.

silent
A: 

I quite like Alex Gorbatchev's javascript-based syntax highlighter. It's very easy to integrate with existing CMS or blogging software (because it's just a javascript library) and produces nice output as well.

Dean Harding
A: 

If you want to output php, you could also use the built-in functions for that:

faileN