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.
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.
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.
http://www.actiprosoftware.com/Products/DotNet/ASPNET/CodeHighlighter/default.aspx
Does this tool do what you want?
If you're in PHP you can also use FSHL: http://code.google.com/p/fshl/. Examples are included.