Syntax Highlighter for CK editor - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Scripts & Components (http://get-simple.info/forums/forumdisplay.php?fid=11) +--- Thread: Syntax Highlighter for CK editor (/showthread.php?tid=1259) |
Syntax Highlighter for CK editor - pictus - 2011-01-21 Hello, i wanted to add some plugins zu ckeditor, but i dont understand where to edit what. can please explain me and tell me if it works. here is one plugin i wanted to add: http://psykoptic.com/blog/post/2008/12/01/Code-Syntax-Highlight-Plugin-for-FCKeditor.aspx#download and a "bb code plugin". is this possible? Syntax Highlighter for CK editor - datiswous - 2011-03-21 There is a plugin for this, but I couldn't make this work with css in v.3 beta r373: http://get-simple.info/forum/topic/1080/simple-syntax-highlighting-with-codemirror-plugin/ -------------------------------------------------------------------------------------------------------------------------- What bbcode functions you want to add? Syntax Highlighter for CK editor - Connie - 2011-03-21 first read the docs at ckeditor.net about plugins you will see they must be installed into a certain subdirectory of CKEditpr Check if the plugin is not already there (there are a lot of already) then it must be activated As I am just testing the CKEditor in GS, I am not sure whether it is possible to add this in the EDITOR-Options in the gsconfig.php or whether it must be done in the CKEditor-Configuration itself (which will be overwritten by every upgrade) Syntax Highlighter for CK editor - datiswous - 2011-03-21 The page http://psykoptic.com/blog/post/2008/12/01/Code-Syntax-Highlight-Plugin-for-FCKeditor.aspx#download says: Quote:It WON'T work with the new CKEditor (yet). pictus Wrote:here is one plugin i wanted to add: B.t.w. that plugin is for FCKeditor. I think you need this one: http://code.google.com/p/ckeditor-syntaxhighlight/ It is a rewrite/port of the syntaxhighlight plugin for FCKEditor you mentioned. Syntax Highlighter for CK editor - mikeh - 2011-03-29 I don't know how related this is to this thread, but it is very possible to get codemirror to work with the ckeditor in getsimple. This would accomplish a syntax highlighter with the source view.. I succesfully implemented this in V3.0, but not as a plugin, by hacking up the edit.php page. Edit (forgot the link): http://heydojo.co.cc/ckeditor-codemirror/index.html Syntax Highlighter for CK editor - Connie - 2011-03-31 I got it to work, but it is not easy as the available plugin is very poorly documented. see a very simple example here: http://www.urbanistan.de/getsimple/syntax-1 download the plugin from http://code.google.com/p/ckeditor-syntaxhighlight/ and follow the installation this plugin is only half the work: - you need to load the original Syntaxhighlighter Script from http://alexgorbatchev.com/SyntaxHighlighter/manual/configuration/ I uploaded it to admin/templates/js/syntaxhighligter - the best would be to create a special template for pages with code and add this to the header. Code: <!-- SyntaxHighlighter --> Code: <script type="text/javascript"> to configure the editor, you have to add a button to the toolbar: in the gsconfig.php add this to the DEFINE EDITORTOOL- Definition Code: '/' in the GSEDITOROPTIONS: Code: define('GSEDITOROPTIONS', " in the syntaxhightlightLangDefault set the Language you want, either PHP or JAVA or whatever thats not all, in admin/templates/js/ckeditor/config.js add this: Code: CKEDITOR.editorConfig = function( config ) then it should work and you can send me roses ;=) |