Friday, July 30, 2010

Blogger : How to post the SOURCECODE on Blogger





Before perform EDIT HTML. DO NOT FORGET BACKUP YOUR TEMPLATE before by click Download All Template.

1. Design > Edit HTML

2. Find   </head> then parse below code BEFORE it.
<script language='javascript' src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shCore.js'/>
<script language='javascript' src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCpp.js'/>

3. Find </body>   then put below code BEFORE it.
<script language="javascript">
dp.SyntaxHighlighter.BloggerMode();
dp.SyntaxHighlighter.HighlightAll('code');
</script>


4. Find ]]></b:skin> then parse source code from THIS LINK BEFORE it.

5. Preview and Save Template.







Posting source code. 
1. Bring your source code to encode at HERE.
2. New Post and Choose Edit HTML (not Compose).
3.Bring Encoded Source Code from the First parse look like below.

    <pre class="Cpp" name="code">
           --SOURCECODE
    </pre>

No comments:

Post a Comment