[pmwiki-users] sourceblock and not-equal sign

Patrick R. Michaud pmichaud at pobox.com
Mon Nov 6 21:05:55 CST 2006


On Sat, Nov 04, 2006 at 07:43:43PM +0100, Jan Erik Moström wrote:
> How can I handle this, I'm using sourceblock to "pretty print" 
> source code. I was just going to add an AppleScript which 
> contains the not-equal character (a '=' with a slash across it), 
> when I submit the code it's changed to ≠.
> 
> When I view the page the correct character is displayed as long 
> as they are outside the sourceblock, inside the sourceblock they 
> are displayed as "≠".
> 
> Is there some way I can get the correct display inside the sourceblock?

I don't know of a good way to do this, no.  It's the browser that
converts the characters to ≠, not PmWiki.

You might try the following markup rule, but I don't know what
else might break.

    Markup('&#nnnn;', '<[=', '/&amp;(#\\d+;)/', '&$1');

Pm




More information about the pmwiki-users mailing list