Recent Changes - Search:

PmWiki

pmwiki.org

01047

Summary: Escape-block within a code block to enable (inline) markup
Created: 2008-09-16 05:13
Status: Open
Category: Feature
Assigned:
Priority: 5
Version: 2.2.0+
OS: -

Description: Would be nice to have a escape block within code blocks to use some markup with in. I think a example can explain it in a short way:

Lets assume the escape block is marked by: {! marked-up content !}

[@my code {! [[ALink]] !} ... @]

my code {! [[ALink]] !} ...

This should place a link within my code block.

For a single line code block this:

[@my code @] [[ALink]] [@ ...@]

my code ALink? ...

would nearly look the same and has a working link but if there is a hole block:

[@
some code
code {! [[ALink]] !}
more code
@]
some code
code {! [[ALink]] !}
more code

it doesn't work this way and I think there isn't yet a way to make it work without spliting the code-block in multiple blocks.

I think it would be enough to enable all inline markups through such a escape sequence. The font should not explicite change back to the default font of the page so the monospace layout is not destroyed until I would force this by define some CSS doing it. Like:

pre > a { font-family:serif; }

Thanks and greets, Jan

Edit - History - Print - Recent Changes - Search
Page last modified on September 16, 2008, at 05:30 AM