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

Make syntax highlighting work.

parent 83209e1a
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -62,6 +62,15 @@ Ext.define('Docs.OverviewPanel', {
        this.addDocked(this.toolbar);
        
        this.update(this.renderClass(docClass));
        this.syntaxHighlight();
    },
    
    // Marks all code blocks with "prettyprint" class and then calls
    // the prettify library function to highlight them.
    syntaxHighlight: function() {
        Ext.Array.forEach(Ext.query("pre > code"), function(el) {
            Ext.get(el).addCls("prettyprint");
        });
        prettyPrint();
    },

+0 −2
Original line number Diff line number Diff line
@@ -75,8 +75,6 @@ var showClass = function(cls, anchor) {
    docOverviewTab.load(cls);
    docOverviewTab.setLoading(false);

    prettyPrint();

    if (anchor) {
        Ext.getCmp('doc-overview').scrollToEl("a[name=" + anchor + "]");
    } else {