[b]Attention[/b] This plugin is under development. It does not work correctly.

With this plugin you can insert and edit sourcecode. It supports PHP and JS source. If there is PHP or JS code in your editor, code is replaced by fakeelements (shows little icons in WYSIWYG mode).

[b]Known bug:[/b] In WYSIWYG mode everything looks good. But if you switch to source mode you will see the disaster. If anybody find a solution, you are welcome.


[b]License[/b]

Licensed under the terms of the [url=http://www.gnu.org/licenses/gpl.html]GPL[/url].


[b]Download[/b]

[url=http://]Insert and edit sourcecode[/url]


[b]Installation[/b]

1. Extract the archiv and copy the "scriptcode" folder to CKEditors "plugins" folder.
2. In the CKEditor configuration file (config.js) add the following code:

[code]
config.menu_groups = 'inscode';
config.extraPlugins = 'scriptcode';
config.toolbar_YourToolbarName = [ ['Button','Button','ScriptCode'] ];
[/code]

3. Copy the "codemirror" folder to a folder of your choice. If you are using "sourcepopup" plugin, you don't need codemirror second time.
4. Set the following code to the page who loads your editor and set codemirror_rootpath with your path:

[/code]
<script type="text/javascript">
   var codemirror_rootpath = 'path/to/codemirrorfolder/';
</script>
[/code]
