I am in a new project of developing a code sinppets site,,, in my site i want to display codes which are submitted by users,,,, the code will be in any language like html, php, asp, js, c, c++,, i want to display them, but they should not executed,,, and also, there should be some color highlighting like http://snipplr.com/view/2/check-for-valid-email-address/ ( red, green, blue ),,,,, i want this highlighting in all programming languages,,, since the codes are users submitted, please help me how to securely get those codes and display them in my site with PHP
Integrate a 'Syntax Highlighter', theirs many opensource ones. One of the most popular -> http://qbnz.com/highlighter/