It's just load "Google Code Prettify".
The way to use is to put this script tab just before </head> tag like this.
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js?lang=css&skin=sunburst"></script> </head>
We can choose from some styles. The sample above is for sunburst. After you put this script tag, all you have to do is to enclose source code with pre tag like this.
<pre class="prettyprint linenums"> Here's source code </pre>
*Please note that you can write source code strings on create mode but you need to put pre tags on HTML mode.
0 Comments:
Post a Comment