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:
Scott Main 2010-01-15 17:30:38 -08:00
parent 3556305eb0
commit 945ed36ec4

View file

@ -64,7 +64,7 @@ addLoadEvent( function() {
} );
addLoadEvent( function() {
$("pre").addClass("prettyprint");
$("pre:not(.no-pretty-print)").addClass("prettyprint");
prettyPrint();
} );