Page 1 of 1

Editor misformatting certain strings

Posted: Thu Oct 21, 2010 4:28 am
by chippyash
If I enter something like

/**
* This is a comment
*/

and format with a surrounding <pre></pre> tag, when I preview the page I get

/
This is a comment
/

The asterix characters go missing. I'm loath to send this entry live if it's not looking right in the preview

What can I do to get round this. I am trying to present blocks of program code.

TIA

Re: Editor misformatting certain strings

Posted: Thu Oct 21, 2010 12:16 pm
by onli
Is serendipity_markup or another markup-plugin active? If it is active, try to deactivate it wth the serendipity_event_entryproperties-plugin for that entry.

Re: Editor misformatting certain strings

Posted: Mon Oct 25, 2010 1:03 am
by chippyash
Thanks onli, that sorted it, Pity we have to switch standard functionality off just to do the simple things though. :(

Re: Editor misformatting certain strings

Posted: Mon Oct 25, 2010 7:32 pm
by garvinhicking
chippyash wrote:Thanks onli, that sorted it, Pity we have to switch standard functionality off just to do the simple things though. :(
In fact, the markup plugin is there to actually simply-format things for non-savvy users. Posting sourcecode is a bit more advanced and there markup formations always screw up things. So actually the savvy user needs to disable this - sadly we can't anticipate what the user will be using, thus we figured more novice users would need that plugin than not.

Regards,
Garvin