[pmwiki-users] TextFormatting: [+ big +] vs. '+ big +'
Patrick R. Michaud
pmichaud at pobox.com
Fri Jun 23 11:36:14 CDT 2006
On Fri, Jun 23, 2006 at 12:32:15AM +0200, Christian Bartolomaeus wrote:
> I always used [+ +] and [- -] for bigger or smaller text. That's what
> Site/EditQuickReference [actually it was the former
> PmWiki/EditQuickReference] told me to do when I started using PmWiki
> and I never thought about it anymore.
> Just today, after someone asked on pmwiki-users-de, I noticed that the
> guiedit button for "small text" uses '-small text-' and the button for
> "big text" uses '+big text+'.
> I took a look at scripts/stdmarkup.php and learned that the different
> methods generate different HTML-Output:
> [-text-] -> <small>text</small>
> [+text+] -> <big>text</big>
> '-text-' -> <span style='font-size:80%'>text</span> # or similar
> '+text+' -> <span style='font-size:120%'>text</span> # or similar
Actually, this is backwards... [-text-] and [+text+] produce the <span>...</span>,
and '-text-' and '+text+' produce <small> and <big>.
> * EditQuickReference only mentions [- -] and [+ +]
> * BasicEdition also mentions only [- -] and [+ +]
> * MarkupMasterIndex mentions both methods but doesn't give further
> * TextFormattingRules gives [- -] and [+ +] as the "main" method and
> mentions '- -' '+ +' as "other styling"
> So my question is: Is there a recommendation which method to use? If
> so, I would suggest to change the Documentation accordingly. (I can do
> that next week.)
There's not a "always use xyz" recommendation. One advantage of the [-...-]
and [+...+] formats is that one can easily increase/decrease the amount of
change. But either option is valid.
More information about the pmwiki-users