Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

CodeVachon/jquery.syntaxhighlighter.js

Repository files navigation

jQuery Syntax Highlighter Plugin

Plugin to Highlight Syntax in Code page.

Requires jQuery vr 1.10.2 or greater

Usage

HTML

<pre>
  <code>
		// test syntax highlighting...  
		private void function moo() {} // finish this later
		var x = y;
		if ((x == y) &amp;&amp; (y != cow)) {
		  y++;
		}
		// that was fun
  </code>
</pre>

Javascript

$('pre code').highlightSyntax();