Add \ as line continuation to enable breaking long lines

When working with editors that does not do soft warping of lines there are some cases when you want to hard break lines to make the markup more clear. Should be useful to advanced users that knows about \.

Use cases

Here are some use cases that will work better with a unix style line continuation:

Current syntax, must be on same line:

You can read [http://freetype.freedesktop.org/freetype2/docs/reference/ft2-header_file_macros.html this section of the FreeType 2 API Reference] for a complete listing of the header macros.

With line continuation:

You can read
[http://freetype.freedesktop.org/freetype2/docs/reference/ft2-header_file_macros.html \ 
this section of the FreeType 2 API Reference] for a complete listing of the header 
macros.

Definition List

Current syntax, must be on same line:

 face_index:: Certain font formats allow several font faces to be embedded in a single file. This index tells which face you want to load. An error will be returned if its value is too large. Index[[nbsp]]0 always work, though.

One can expect that this markup will work, but it does not:

 face_index:: Certain font formats allow several font faces to be embedded in a single 
 file. This index tells which face you want to load. An error will be returned if 
 its value is too large. Index[[nbsp]]0 always work, though.

With line continuation:

 face_index:: Certain font formats allow several font faces to be embedded in a single \
 file. This index tells which face you want to load. An error will be returned if its \
 value is too large. Index[[nbsp]]0 always work, though.

Discussion

Personally I don't feel the need for this, as all editors i use support soft wrapping.

The case of links could be nicer if we can just break the line without \ like that:

text [http://freetype.freedesktop.org/freetype2/docs/reference/ft2-header_file_macros.html
link label] more text

In the case of definition lists, the indented line markup used in un ordered lists should work.

-- NirSoffer 2005年05月31日 15:04:51


This feature already implemented in the UseMod wiki. TextFormattingRules/WikiTextFormatting



* I was looking for ways to better support multiple lines in a table cell rather than keeping everything on a single line (it would be messy!).

  • The solution is by supporting adding "\\" to the end of line to indicate continuation of the line, e.g.
    || Hi \\
    There || Hello \\
    World ||
    Which would result in something that looks as if it was on the same line:

    Hi There

    Hello World

    I have made a patch to support this on my own instance. Definitely useful for keeping things readable.

-- Ray


CategoryFeatureRequest

MoinMoin: FeatureRequests/UnixStyleLineContinuation (last edited 2009年02月25日 05:33:42 by 207)

AltStyle によって変換されたページ (->オリジナル) /