Skip to content Skip to sidebar Skip to footer

How Can I Show Actual Source Code In A Div

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 sourc

Solution 1:

Solution 2:

You can use geshi for that.

Solution 3:

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.

Solution 4:

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

Post a Comment for "How Can I Show Actual Source Code In A Div"