Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Include a [code] Button with highlighting for python?
#8
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!
Reply


Messages In This Thread
Include a [code] Button with highlighting for python? - by p91 - 2012-07-14, 06:41:16



Users browsing this thread: 1 Guest(s)