Posts

Showing posts with the label syntax highlighting

Before blogging about code....

The first thing that we need before blogging in a tech blog, is a way to display well-formatted code, and that means with all the syntax highlighting that our more beloved editors do. You can’t deny, after all, that reading code without colors, is not the same. So I checked a bit online and I managed to show code like this: var total = (from u in ctx.Blogs where u.Name.Contains("Blogger") select u).Count(); if (total > 1) return "I though blogger was the only one"; The best thing about this tool is that supports “brushes” to render a lot of languages, so we can have pieces of code in html, c#, c++, python or whatever we want, the setup is quite easy. I found many entries on internet but finally when to they integration page to really see it working. So it seems we are ready to start blogging with source code!