Follow the below steps to highlight you content (code) in blogger posts.
Step 1:
Go to Blogger Dashboard -> Template ->Edit Html
Paste the below code into your Blogger Template inside the <head> </head> tag
Step2:
Use the <pre> tag to highlight your code snippet
Example:
<pre
RequestToken GetRequesttoken()
{
var requestToken = (RequestToken)Session["RequestToken"];
Session.Remove("RequestToken");
return requestToken;
}
</pre>
output looks like:
Step 1:
Go to Blogger Dashboard -> Template ->Edit Html
Paste the below code into your Blogger Template inside the <head> </head> tag
Step2:
Use the <pre> tag to highlight your code snippet
Example:
<pre
class
=
"brush: csharp"
>RequestToken GetRequesttoken()
{
var requestToken = (RequestToken)Session["RequestToken"];
Session.Remove("RequestToken");
return requestToken;
}
</pre>
output looks like:
RequestToken GetRequesttoken() { var requestToken = (RequestToken)Session["RequestToken"]; Session.Remove("RequestToken"); return requestToken; }
No comments:
Post a Comment