Commit aba9988d authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Skip prettifying inline examples.

No need to pretty-print these, as they are syntax-highlighted
by the CodeMirror library.
parent 05ee04f1
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -13,7 +13,11 @@ Ext.define("Docs.Syntax", {
     */
    highlight: function(root) {
        Ext.Array.forEach(Ext.query("pre > code", root.dom || root), function(el) {
            Ext.get(el).addCls("prettyprint");
            el = Ext.get(el);
            // Don't prettify inline examples, these are highlighted anyway
            if (!el.parent().hasCls("inline-example")) {
                el.addCls("prettyprint");
            }
        });
        prettyPrint();
    }