[pmwiki-users] Question for better user than I

Patrick R. Michaud pmichaud at pobox.com
Mon Jul 4 11:01:50 CDT 2005


On Sun, Jul 03, 2005 at 07:29:01PM +0200, Ferrosteph wrote:
>    Hello all.
>    I'am  newbee to pmwiki, and try many things .
>    One of this is the \\ to have a <br>.
>    Is it normal that code runs well only when I put it at the end of line? I
>    find interesting to put it anywhere in the input line, like "this is my
>    text\\and now on the next line\\"

When we first introduced the \\ markup we decided to have it
generate line breaks only at the ends of lines (it also joins
the next line to the current one for styling purposes).

However, if you want \\ to generate breaks in the middle of lines
also, add the following to local/config.php:

    Markup('\\\\', '>\\$',
      "/\\\\(\\\\+)/e", "str_repeat('<br />', strlen('$1'))");

Pm



More information about the pmwiki-users mailing list