To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
To LUGNET News Traffic PageSign In (Members)
 Publishing / FTX / Tutorial / line-breaks

Coercing line breaks

Line-break character

If you ever need to break a line at a specific point, there is a special line-break character you can use:
   ¬
It it at position #172 in the standard ISO-8859-1 character set. In Microsoft Windows, for example, you can write this character by typing 0172 on the 10-key pad while holding down the Alt key. You may also be able to cut & paste it from a “key caps” or “character map” program.


Automatic line breaks

If you want to write a large block of text and force a line-break at the end of each line, you can prefix each line with a colon (:) in column 1, followed by a space. For example, this:

: Twinkle, twinkle, little star
: How I wonder what you are
:    Up above the world so high
:    Like a diamond in the sky
: Twinkle, twinkle, little star
: How I wonder what you are

displays like this:

Twinkle, twinkle, little star
How I wonder what you are
      Up above the world so high
      Like a diamond in the sky
Twinkle, twinkle, little star
How I wonder what you are

This might be useful, for example, for writing down poetry or music lyrics. If you wanted your lines to show in italics, you could surround each line by a pair of curly braces, like this:

: {Twinkle, twinkle, little star}
: {How I wonder what you are}
:    {Up above the world so high}
:    {Like a diamond in the sky}
: {Twinkle, twinkle, little star}
: {How I wonder what you are}

or, as a shortcut, you could use a semicolon (;) in column 1 instead of a colon. For example, this:

; Twinkle, twinkle, little star
; How I wonder what you are
;    Up above the world so high
;    Like a diamond in the sky
; Twinkle, twinkle, little star
; How I wonder what you are

displays like this:

Twinkle, twinkle, little star
How I wonder what you are
      Up above the world so high
      Like a diamond in the sky
Twinkle, twinkle, little star
How I wonder what you are
All text, images, or trademarks in this document are the intellectual property of their respective owners.


©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR