2012-07-14, 06:41:16
I finally got it to work.
For some reason using the settings in the ckeditor.js did not work but after using
define('GSEDITOROPTIONS', "
extraPlugins : 'syntaxhighlight',
syntaxhighlighthLangDefault : 'php'
");
in the gsconfig.php the button turned up
[EDIT]
While I now have a Code button and can add code it still does not look formated nor does it have numbering in front so my guess is that my header is still incorrect.
But I have added the
<!-- SyntaxHighlighter -->
...
stuff to my header.inc.php.
I also added the script for Cpp and Python as these two are the ones I need the most.
[EDIT2]
After adding
<script type="text/javascript">SyntaxHighlighter.all();</script>
to my header it is now working!
For some reason using the settings in the ckeditor.js did not work but after using
define('GSEDITOROPTIONS', "
extraPlugins : 'syntaxhighlight',
syntaxhighlighthLangDefault : 'php'
");
in the gsconfig.php the button turned up
[EDIT]
While I now have a Code button and can add code it still does not look formated nor does it have numbering in front so my guess is that my header is still incorrect.
But I have added the
<!-- SyntaxHighlighter -->
...
stuff to my header.inc.php.
I also added the script for Cpp and Python as these two are the ones I need the most.
[EDIT2]
After adding
<script type="text/javascript">SyntaxHighlighter.all();</script>
to my header it is now working!