Today, I am experimenting adding syntax highlighting to Blogger.
First, following instruction in this page to add SyntaxHighlighter script to your blogger template.
Next, you can start editing your blog.
Remember to use <textarea> instead of <pre>, because <textarea> can handle < and > signs in your code (like HTML, or generic types in C# or Java).
Also, customize your tag, whether to show gutter, or control.
Finally, I prefer to use this tag in my blog:
<textarea name="code" class="c#:nocontrols:nogutter">
For example:
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment