awesome. now we show code snippets in a much better way. Peeps who add to the tutorials will need to enclose code w/ <pre class="ruby></pre>

This commit is contained in:
Ken Johnson
2013-05-23 15:18:39 -04:00
parent a877e93780
commit f674a57440
7 changed files with 990 additions and 19 deletions
+18 -1
View File
@@ -21,4 +21,21 @@
//= require date-picker/daterangepicker.js
//= require jquery.sparkline.js
//= require tiny-scrollbar.js
//= require jquery.validate.js
//= require jquery.validate.js
//= require jquery.snippet.js
function rubyCodeFormat() {
$("pre.ruby").snippet("ruby",{style:"rand01",transparent:true,showNum:true});
// Finds <pre> elements with the class "js"
// and snippet highlights the JAVASCRIPT code within
// using a random style from the selection of 39
// with a transparent background
// without showing line numbers.
};
$(document).ready(function(){
rubyCodeFormat()
});