The latest version of Syntax Hihglighter has been released and there are quite a few changes in the way things work now. This version was named Syntax Hihglighter 3.0.83. NEW FEATURES IN 3.0.83
INSTALLATION Before you could get in to the process, I recommend you to back up your template. 1. Navigate to Dashboard > Design > Edit HTML 2. Find </head> 3. Copy below code and paste it just before the </head> tag<!-- Syntax Highlighter 3.0.83 START --> <link href='http:///pub/sh/current/styles/shCore.css' rel='stylesheet' type='text/css'/> <link href='http:///pub/sh/current/styles/shThemeDefault.css' rel='stylesheet' type='text/css'/> <script src='http:///pub/sh/current/scripts/shCore.js' type='text/javascript'/> <script src='http:///pub/sh/current/scripts/shBrushBash.js' type='text/javascript'/> <script src='http:///pub/sh/current/scripts/shBrushCss.js' type='text/javascript'/> <script src='http:///pub/sh/current/scripts/shBrushJava.js' type='text/javascript'/> <script src='http:///pub/sh/current/scripts/shBrushJScript.js' type='text/javascript'/> <script src='http:///pub/sh/current/scripts/shBrushPerl.js' type='text/javascript'/> <script src='http:///pub/sh/current/scripts/shBrushPhp.js' type='text/javascript'/> <script src='http:///pub/sh/current/scripts/shBrushSql.js' type='text/javascript'/> <script src='http:///pub/sh/current/scripts/shBrushVb.js' type='text/javascript'/> <script src='http:///pub/sh/current/scripts/shBrushXml.js' type='text/javascript'/> <script language='javascript' type='text/javascript'> SyntaxHighlighter.config.bloggerMode = true; SyntaxHighlighter.all(); </script> <!-- Syntax Highlighter 3.0.83 END -->4. Save your template. NOTE: Whenever
you have to write some codes in your posts, click on "Edit HTML" tab
of your post editor and write the codes between the following tags<pre class="brush: js"> To add title in your code add title="Title Here" it's look like the code below:
<pre class="brush: js" title="Title Here" > For an example : <pre class="brush: js" title="This is a title, check it out!"> Will display like the below image on your blog post. Before adding any script within <pre> , encode the script using HTML entities. You can encode your script using our Adsense Parser / HTML Entities Encoder.
|
|