[pmwiki-users] pmwiki.org recipeinfo magic
Kathryn Andersen
kat_lists at katspace.homelinux.org
Sun Nov 19 15:47:24 CST 2006
On Sun, Nov 19, 2006 at 01:03:42PM +0000, Hans wrote:
> Sunday, November 19, 2006, 7:25:08 AM, Stirling wrote:
>
> > Pm Cheated. He defined a custom markup for all lines starting with a word that
> > begins with a capital and ends in a colon. The markup puts each such line in
> > a div with a class name which is generated from the starting word. Thus a line
> > (anywhere in a Cookbook page) that starts like this:
>
> > Fish: lemon sauce is good.
>
> > gets rendered something like
>
> > <div class="property-Fish">lemon sauce is good.</div>
>
> > and naturally most browsers render each div starting with its own line.
>
> As far as Pm said in previous queries about this, his markup is this:
>
> Markup('^Property:', 'block',
> '/^([A-Z][-\\w]+):(\\s.*)?$/',
> '<:block,0><div class=\'property-$1\'>$0</div>');
Thanks! That's what I wanted to know.
--
_--_|\ | Kathryn Andersen <http://www.katspace.com>
/ \ |
\_.--.*/ | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
v |
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha! | -> Earth -> Sol -> Milky Way Galaxy -> Universe
More information about the pmwiki-users
mailing list