[Pmwiki-users] Suggestions for [[<<]] replacement.

John Feezell johnfeezell
Sun Jan 4 15:30:15 CST 2004


Some thoughts on a replacement for [[<<]].
My suggestion:

   :NL  for a new line to be replaced with <br />
   :NP  for a new paragraph to be replace with <p /> or <br /><br />

My criteria:
1.  use minimum number of key strokes
2.  be distinct and unlikely to be found in regular text files
3.  be a ready reminder of what is being done
4.  require a minimum amount of change to existing PmWiki code
5.  be easily recognized as "markup"
6.  use customary writing symbols

My preferrence order:

1.  :NL    and    :NP
      Usage --
      Ok -- This is line one::NL This is line two
            This is line one:NL This is line two
            This is line one: :NL This is line two

      Problem -- This is line one :NLThis is line two
      :NLThis with current WikiWordPattern becomes wiki word NLThis?

2.  :NL:   and    :NP:
      Usage --
      OK -- Works well everywhere whether followed by a space or some other 
symbol. Visually less pleasing.

3:  :nl    and    :np
      Usage --
      OK -- Works well everywhere whether followed by a space or some other 
symbol. Visually less pleasing. Not as easy to see in the markup.
           Comments:

The colon (:) according to WebWord Pro represents the following:
   A punctuation mark (:) used after a word introducing a series or an 
example or an explanation (or after the salutation of a business letter)

This seems to fit with what is happening with a new line or new paragraph 
markup. And with my limited testing meets all of my criteria above.  It 
also reminds me of other coding such as \n or back with DOS LF,CR etc.

The above were tested with the following:
$InlineReplacements["/:NL/"] = "<br />";
$InlineReplacements["/:NL:/"] = "<br />";
$InlineReplacements["/:nl/"] = "<br />";
$InlineReplacements["/:NP/"] = "<p />";
$InlineReplacements["/:NP:/"] = "<p />";
$InlineReplacements["/:np/"] = "<p />";











-- 
 



More information about the pmwiki-users mailing list