0

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.

Nakilon
  • 34,866
  • 14
  • 107
  • 142

3 Answers3

2

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
  • 795,719
  • 175
  • 1,089
  • 1,143
0

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

Does this tool do what you want?

Emyr
  • 2,351
  • 18
  • 38
0

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

Martin Cohen
  • 151
  • 4