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

Syntax highlighting of code blocks in comments.

parent 66730a44
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -10,6 +10,10 @@ Ext.define('Docs.controller.Comments', {
        authMixin: 'Docs.controller.AuthHelpers'
    },
    
    requires: [
        "Docs.Syntax"
    ],

    refs: [
        {
            ref: 'viewport',
@@ -553,6 +557,7 @@ Ext.define('Docs.controller.Comments', {
            }
        } else {
            Docs.view.Comments.commentsTpl.append(comments, data);
            Docs.Syntax.highlight(comments);
        }

        if (opts.hideCommentForm) {
@@ -604,6 +609,7 @@ Ext.define('Docs.controller.Comments', {
        }

        Docs.view.Comments.commentTpl.insertBefore(newCommentWrap, data);
        Docs.Syntax.highlight(newCommentWrap.up(".comment-list"));
    },

    commentId: function(id) {