开发者

Visual Studio Blog

I want to write a blog and some of the blogs that I've seen on the Internet have code 开发者_JS百科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.


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.


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.


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜