hi
i need to display some code that will be displayed as code (not interpreted). ideally i need something like what i have here in the forum: i can press "code" and paste my code.
right now it is displayed horrible.
anyone can help please?
best regards
i need to display some code that will be displayed as code (not interpreted). ideally i need something like what i have here in the forum: i can press "code" and paste my code.
right now it is displayed horrible.
anyone can help please?
best regards
Re: any way to display code or make a codebox?
That sounds like the job of a plugin and unfortunately a quick google search does not turn up any for ckeditor. However, I figured I would at least provide this code highlighter, even though it is for fckeditor. Perhaps you can aid the author or update it to the ckeditor specification. Or you could just use what it is based off of, SyntaxHighlighter which does the heavy lifting.
Hopefully someone has something to add, perhaps their own plugin.
Re: any way to display code or make a codebox?
I'm also trying something similar:
http://www.ramble.in/ckeditor/syntaxhighlight/
http://code.google.com/p/ckeditor-syntaxhighlight/
other resource:
http://code.google.com/p/lajox/
I try it tonight
Re: any way to display code or make a codebox?
I tried the plugin in the first two links and it works really well.
the problem is with HTML CODE (JAVASCRIPT, PHP WORK WELL) when I want to change it after inserting and saving it, as I said here: http://cksource.com/forums/viewtopic.php?f=11&t=17128
Re: any way to display code or make a codebox?
I hacked out the plugin you're using (ramble.in link). I will have a look at this tonight. I have a feeling I ran into a similar problem and fixed it.
The last link is a rip off of my plugin (I've emailed the "developer" with no response), he literally took my code, obfuscated it slightly, added his own file headers and released as his own.
That or we're clones.