Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SyntaxHighlighter
#1
SyntaxHighlighter

Cannot get it to work.

I followed Connie's steps in the wiki and searched the forums. I've found two posts that are close. One is for activating codemirror (couldnt get that to work either) and the slowness of the syntaxhighlighter.

It seems every time I copy in the two lines it breaks the editor

config.extraPlugins = 'syntaxhighlight',
config.syntaxhighlightLangDefault = 'php'

I've followed the steps precisely.

Ive tried taking out and putting back in the files and it seems I've pinpointed it to be those two lines. I've tried closing the lines each with semicolon but nothing.

Also - I notice in the gsconfig by adding in the ['code']. It doesnt show the button in the editor either

Code:
CKEDITOR.editorConfig = function( config )
{
    // Define changes to default configuration here.
    config.resize_dir = 'vertical' // vertical resize
    config.toolbarCanCollapse = false; // hide toolbar collapse button
    config.dialog_backgroundCoverColor = '#000000';

      //This is where I add in the two lines

     config.extraPlugins = 'syntaxhighlight',
     config.syntaxhighlightLangDefault = 'php'
    
config.toolbar_advanced =
        [['Bold', 'Italic', 'Underline', 'NumberedList', 'BulletedList', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock', 'Table', 'TextColor', 'BGColor', 'Link', 'Unlink', 'Image', 'RemoveFormat', 'Source'],
        '/',
        ['Styles','Format','Font','FontSize']];    

    config.toolbar_basic =
        [['Bold', 'Italic', 'Underline', 'NumberedList', 'BulletedList', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock', 'Link', 'Unlink', 'Image', 'RemoveFormat', 'Source']];
        
        

};

Any help is greatly appreciated

MY goal is to have the code highlighted so it will make it easier for me see Smile
Reply


Messages In This Thread
SyntaxHighlighter - by lnickel - 2013-08-31, 02:12:04
RE: SyntaxHighlighter - by shawn_a - 2013-08-31, 07:49:52
RE: SyntaxHighlighter - by shawn_a - 2013-08-31, 08:04:02
RE: SyntaxHighlighter - by lnickel - 2013-09-05, 12:04:23



Users browsing this thread: 1 Guest(s)