[pmwiki-users] custom markup/regular expression help

J. Meijer commentgg at hotmail.com
Fri Apr 21 15:57:21 CDT 2006


On 4/21/06, Bronwyn Boltwood <bronwyn at bronwynb.info> wrote:
>I need 3 nestable, easy-to-use custom markups, since wikistyles are a pain 
>when used every few words.  They would be:
>- application term or label
>- required field
>- linked field

The question is about what should be the wiki-markup?

Did you consider using current markup (like that for emphasis) and changing 
the output' to something like:

  <span class='required'>...</span>

? Why doesn't that work for you?

By 'nestable' do you intend to specify some special behavior? Is it 
different from the current set of emphasis markups?

By 'field' do you imply something like page properties?

Trying to improve my understanding!

jm


>I want them to add classes to the text, so that I can combine these
>effects as necessary and style them as I like:
>- application terms have a different font
>- required items are red
>- linked items are underlined
>
>I'd like to add //italic// and **bold** (which I already have regexps
>for), but can give them up if it helps me get the application term
>markups.
>
>--
>"I have learned two ways to tie my shoes. One way is only good for
>lying down. The other way is good for walking." -- Valentine Michael
>Smith, _Stranger in a Strange Land_ by Robert A. Heinlein
>






More information about the pmwiki-users mailing list