How can you prevent any automatic formatting when in CKEditor when viewing in source mode?
I like to edit HTML source code directly instead of using the WYSIWYG
My solution to this was to use comments in my system, but before feeding the page content to CKEditor, convert them to custom HTML tags. Then, upon save, convert them back to my comment tags.
For your syntax that would be something like this in PHP. Before printing the page content to the textarea:
$content = str_replace(array('',''),array('',' '),$content);
Before saving the resulting content:
$content = str_replace(array('',' '),array('',''),$content);
In the CKEditor configuration:
protectedSource:[/[\s\S]*<\/protected>/g]
Hope that helps!