Escaping * and _ charaters

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
s9yrookie
Regular
Posts: 5
Joined: Wed Nov 25, 2015 1:21 pm

Escaping * and _ charaters

Post by s9yrookie »

My first experiences with blogging, so a big thank you to all who've contributed to a great tool...

One simple question: often when I paste code (mainly error messages etc) into the editor any asterisks and underscore characters are treated as formatting directives.

This applies both to blog content and comments. You can see an example here: http://www.aupcgroup.com/blog/index.php ... .html#c105

I'm sure that comment should read

Code: Select all

StringVPrintfWorkerA(char *,unsigned int,unsigned int *,char const *,char *)
Not StringVPrintfWorkerA(char ,unsigned int,unsigned int ,char const ,char )

Is there an easy way to control/prevent this behaviour?
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Escaping * and _ charaters

Post by Timbalu »

Hi

Simply escape them with \*, OR disable the serendipity_event_s9ymarkup plugin elements by options, OR remove the plugin completely, OR install the entryproperties plugin and disable markup parsing for this plugin by entry (multiselectfield form). The "_" should not be touched, as far as I remember.
This plugin is a simple and rather old plugin, "~necessary~" for the PLAIN editor forms.

EDIT. Sorry, I have now read you were talking about comments. That is the same. Either you need to tell you users by adding some text to the template files involved, OR you need to disable comments in this plugin configuration options.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Post Reply