Skip to content

Instantly share code, notes, and snippets.

@nutti
Created February 25, 2015 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nutti/0b0c7dfa1f19c55d8d12 to your computer and use it in GitHub Desktop.
Save nutti/0b0c7dfa1f19c55d8d12 to your computer and use it in GitHub Desktop.
[Javascript] marked.js and highlight.js
marked.setOptions({
langPrefix: ''
});
var html = marked(src);
$('#src').html(html);
$('#src pre code').each(function(i, block) {
hljs.highlightBlock(block, block.className);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment