[Pmwiki-users] why underline does not exist ?
John Rankin
john.rankin
Wed Jul 30 15:33:56 CDT 2003
On a couple of my wikis, I use ^^superscript^^ and __subscript__ markup. I also use {+insert+} and {-delete-} -- the {+insert+} renders as underscore using <ins> ... </ins>, the {-delete-} as strikethrough using <del> ... </del>.
So, if __underline__ is added to PmWiki, is there a good markup for subscript?
I also considered ++insert++ and --delete-- and ..subscript..
My preference would be to use the wikistyles markup for underline, along the lines of
%text-decoration=underline%underlined text%%
An author could %define ul text-decoration=underline% in a GroupHeader page.
--
John Rankin
On Thursday, 31 July 2003 4:53 AM, garfield_fr at tiscali.fr wrote:
I think two underscores is a good markup sequence for underline. I'll add your code to my local.php ...
garfield_fr
----- Original Message -----
From: "Patrick R. Michaud" <pmichaud at pobox.com>
To: "garfield_fr" <garfield_fr at tiscali.fr>
Cc: <Pmwiki-users at pmichaud.com>
Sent: Wednesday, July 30, 2003 6:28 PM
Subject: Re: [Pmwiki-users] why underline does not exist ?
> On Wed, Jul 30, 2003 at 06:15:31PM +0200, garfield_fr wrote:
> > hello !
> >
> > this style does'nt exist !! I known it's possible to do it with
> > wikistyle but the basic user have bold, italic ...but not underline
>
> As with most items, adding this feature needs a good markup sequence.
> My best ideas off of the top of my head would be
>
> __this text is underlined__ (two underscores)
> [_this text is underlined_] (bracket+underscore)
>
> The first one can be easily done by placing the following in local.php:
>
> $InlineReplacements["/__(.*?)__/"] = "<u>\$1</u>";
>
> Note, however, that the <u> tag has been deprecated in HTML 4.x and is not
> available in XHTML 1.1, so it's not really a good "standard" to use. Instead,
> we might be able to do
>
> $InlineReplacements["/__(.*?)__/"] =
> "<span style='text-decoration:underline'>\$1</span>";
>
> but I don't know how widely supported this will be by various browsers.
>
> If I hear enough comments in favor of adding one of the above markups
> to the standard PmWiki distribution I'll do it.
>
> Pm
>
_______________________________________________
Pmwiki-users mailing list
Pmwiki-users at pmichaud.com
http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
More information about the pmwiki-users
mailing list