views:

94

answers:

4
+3  Q: 

Visual Studio Blog

Good Day,

I want to write a blog and some of the blogs that I've seen on the Internet have code snippets in VB.NET or C# that look like the text in Visual Studio itself even with the colors.

Is there some sort of application or tool I can use to create code snippets that look like those other blogs.

TIA,

coson

+3  A: 

google-code-prettify is a good one.

Also, SyntaxHighlighter looks great, but I haven't tried it myself. It has explicit support for VB.NET.

Andy West
A: 

I use this site to convert my code to HTML-formatted text for my blog. Works nicely.

Aaron
+2  A: 

If you're using Windows Live Writer for a blog editor I recomend using "Paste from Visual Studio" (link). It's a great way of getting formatted code into your blog posts.

JaredPar
A: 

If you don't mind using another application, Notepad++ exports your files to HTML.

Just open your *.cs files and go to Plugins > NppExport > Export to HTML. Fonts and colors are preserved, as defined in your Notepad++ configuration.

FYI, Notepad++ exports to HTML 4.01

Scott