docs: add the ability to exclude PRE elements from being prettified
by adding the class "no-pretty-print" (needs to hyphenate 'prettyprint', otherwise the prettify script will parse "no-prettyprint" the same as "prettyprint")
This commit is contained in:
parent
3556305eb0
commit
945ed36ec4
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ addLoadEvent( function() {
|
|||
} );
|
||||
|
||||
addLoadEvent( function() {
|
||||
$("pre").addClass("prettyprint");
|
||||
$("pre:not(.no-pretty-print)").addClass("prettyprint");
|
||||
prettyPrint();
|
||||
} );
|
||||
|
||||
|
|
Loading…
Reference in a new issue