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:
@@ -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()
|
||||
});
|
||||
Reference in New Issue
Block a user