views:

46

answers:

2

Hi folks, I do have some strings that contains programming code, like XHTML (asp.net markup), C#, C, Java and I want to display them with a syntax highlighter on my web page.

Is there a control or a javascript implementation for a syntaxhightlighter that supports multiple languages? Or would you advise that I explicitly mark the code blocks (like 'this is c# code'), and use individual controls to display these serveral languages? Is there anything you can recommend?

I do also take recommendations for syntaxhighlighter that only support one language.

+1  A: 

Have a look at GeSHi (How can I use GeSHi under ASP?).

Gregory Pakosz
Looks nice, but due to the fact that I need to set up PHP and need to create a virtual directory, I' try the syntaxhighlighter by alexgorbatchev first.
citronas
+1  A: 

Have a look at this: http://alexgorbatchev.com/wiki/SyntaxHighlighter

Jan Hančič