Pages

Sunday, January 15, 2012

Blogspot Code Syntax Highlighter

Here is the code to highlight syntax of the code hosted on the blogspot.
<script src="http://yandex.st/highlightjs/6.1/highlight.min.js"></script>
<link rel="stylesheet" href="http://yandex.st/highlightjs/6.1/styles/default.min.css">
<link rel="stylesheet" href="http://yandex.st/highlightjs/6.1/styles/idea.min.css">
<script>
  hljs.initHighlightingOnLoad();
</script>
<br />
<!-- Here will be the description -->
<pre style="border: 1px dashed #CCCCCC; overflow: auto;"><code style="word-wrap: normal;">
<!-- Here will be the source code -->
</code></pre>

No comments:

Post a Comment