Re: creole formatting error

new topic     » goto parent     » topic index » view thread      » older message » newer message
petelomax said...

I spotted a problem trying to reply to the other post. Using a double # before the opening { and after the closing } I tried: eg },{1 but I had to add a space eg { {},{1}}

Edit: It is trying to honour an "image" tag inside a "code text" tag, is that right?

This is not an error in creole.

The phrase 'code text' is misleading. The double # tag is used to render text using a mono-spaced font. It has nothing explicitly to do with 'code' as such. Therefore creole saw your tag and formatted any text with a mono-spaced font and it also processed other creole tags that were inside that section.

To achieve what you wanted here you needed to one of a few alternative methods.

  • Use the 'wiki' escape character (tilde ~) to have creole ignore the double braces...
    eg. ##~{{}, {1}}##
    This gives : {{}, {1}}
  • Use the 'nowiki' tag to wrap the whole phrase so it ignores all wiki tags in that text...
    eg. {{{ {{}, {1}} }}}
    This gives : {{}, {1}}
  • Use the eucode tag, which is specifically for euphoria code...
    eg.

<eucode>
{{}, {1}}
</eucode>

which gives :

 {{}, {1}} 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu