views:

31

answers:

3

Hi,

I want code highlighting like visual studio.

If user is attaching a code snippept in the article i want to hightlight the code exactly like what visual studio will do.

how can we achieve this.

thanks in advance.

+2  A: 

For example google-code-pretify. If you are not talking about code that is contained in a website but e.g. in a desktop application, you should clarify your question.

Felix Kling
A: 

http://www.actiprosoftware.com/Products/DotNet/ASPNET/CodeHighlighter/default.aspx

Does this tool do what you want?

Emyr
is the tool is free.
dotnetmirror
read the first sentence of the page.
Emyr
A: 

If you're in PHP you can also use FSHL: http://code.google.com/p/fshl/. Examples are included.

Martin Cohen