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

Popular posts from this blog

[SOLVED] Veeam: Failed change tracking (CBT)