Syntaxhighlighter & CodeMirror

2013/08/04

Syntaxhighlighter

editor.ui.addButton && editor.ui.addButton( 'Syntaxhighlight',
{
        label : editor.lang.syntaxhighlight.title,
        command : 'syntaxhighlightDialog',
        toolbar : 'insert,98'
        icon: this.path + 'icons/syntaxhighlight.png',
} );

CodeMirror

editor.ui.addButton && editor.ui.addButton( 'Syntaxhighlight',
1
editor.ui.addButton && editor.ui.addButton( 'Syntaxhighlight',
2
{
3
        label : editor.lang.syntaxhighlight.title,
4
        command : 'syntaxhighlightDialog',
5
        toolbar : 'insert,98'
6
        icon: this.path + 'icons/syntaxhighlight.png',
7
} );
 
んー。確かにCodeMirrorは表示されるまでの時間が短い。というか最初からハイライトされて表示されとる。

0 件のコメント:

コメントを投稿