Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("pre.highlight code[class*='language-']").each(function() {
- var className = this.className.match(/language-([A-Za-z0-9+-]+)/);
- if (className) {
- $(this).removeClass(className[0]);
- $(this).addClass(className[1].toLowerCase());
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement