C # syntax syntax that outputs HTML

I am looking for C # syntax syntax that will take my C # code and turn it into standalone HTML that will be neatly tagged. I found several websites that offer this, but only HTML output that is linked to the CSS stylesheet. If anyone knows if what I am describing exists, please give a link!

+4
source share
3 answers

The Python Pygments tool looks like it can do what you want and more. I believe that it supports many languages, including C #.

  • A wide range of common markup languages ​​and formats are supported.
  • Particular attention is paid to details that enhance the quality of the backlight.
  • Added support for new languages ​​and formats; most languages ​​use simple regular expressions lexical mechanism
  • several output formats are available, including HTML , RTF, LaTeX Sequences, and ANSI
  • it can be used as a command line tool and as a library
+1
source

When I last used it, I got standalone HTML from the CopySourceAsHtml module in Visual Studio. (I stopped using it just because I prefer a CSS related approach.)

http://copysourceashtml.codeplex.com/

The appeal of this plugin is that it will match the style of your Visual Studio theme, whatever that is.

0
source

All Articles