Guide to codefragments on blogger
To create code fragments/snippets, do the following:
Make sure highlightjs has been installed : https://github.com/highlightjs/highlight.js
When writing the blog. Add a reference tag like <CODEGOESHERE> and make it code in blogger, like so:
<INSERT HERE>
The tag can now be found in the html part, add <code> </code> before and after <INSERT HERE>.
So the result is like this:
<INSERT HERE>
Go back to blogger text editor and replace <INSERT HERE> with the actual code. Here i did a c# example:
private void CallParentApplyMethod()
{
if (Parent.Apply())
{
Close();
}
}
you are done.
Comments
Post a Comment