views:

82

answers:

3

I am looking for some way to export a .cs file to an .html file for posting on the web but my searches aren't helping much. I remember years ago an IDE called DevC++ could do this for C code, but I'm not sure how I'd do it with C# 4.

Can Visual Studio do this somehow?

A: 

Try exporting it using Notepad++. The Plugin you want to use is NppExport. Last I checked, HTML and RTF are supported.

Charlie Salts
+1  A: 

Copy and paste to word. Save as HTML.

It's not pretty markup, but it works.

Matt Brunell
The body of the markup isn't actually *that* bad. A span around each color change, which is expected no matter what; one or two custom MSO style attributes and redundant font family.
Rex M