The forum operates in read-only mode. Please head to StackOverflow for support.
Hi
I am unable to add syntax highlight plugin to ckeditor. can anyone guide how to add syntax hightlight plugin to ckeditor.
Give me a small demo, if possible.
Note: hightlight for Javascript, Groovy, Java, XML
you have to add the plugin in the ckeditor's plugins folder then add that to your config.js :
CKEDITOR.editorConfig = function(config) { config.extraPlugins = 'syntaxhighlight'; config.toolbar = [
[.. your buttons]
{name: 'code', items: ['Syntaxhighlight']}, ]; };
you have to add the plugin in
you have to add the plugin in the ckeditor's plugins folder then add that to your config.js :
CKEDITOR.editorConfig = function(config) {
config.extraPlugins = 'syntaxhighlight';
config.toolbar = [
[.. your buttons]
{name: 'code', items: ['Syntaxhighlight']},
];
};