Page 1 of 1

old ASCII formatting codes - ASCII (*.txt) files within Arti

PostPosted: Sun Jul 25, 2004 5:44 am
by Gaev
couldn't find this on the forum any more ... so I posted this from my personal archives

Here is the documentation for the using the old ASCII formatting codes. These codes can only be used with ASCII (*.txt) files displayed within NeoBook's Article object.

You may use the following formatting codes when creating an article with your ASCII text editor. These may be inserted into the text using the "^" (caret) character (not the CTRL key, but the actual "^" character). Click on one of titles below to view formatting codes:

Bold   Italic   Underline   Strikeout   Reverse Video   Font Size   Color   Tab   Center   Caret   Hypertext   Hidden Hypertext

Also note: As ASCII text files contain no paragraph formatting information, you must place a double carriage return (ENTER-ENTER) at the end of each paragraph to notify NeoBook to break at that point.

You may also choose to create your articles in Rich Text Format (RTF) using a special editor like WordPad which is included with Windows. RTF files contain their own formatting and do not require the use of embedded codes like the ones below.

Bold

Use "^B" at the start of the portion which is to display as bold text. To turn bold off, place a "^b" at the end of the section of text which is to be bold.


Usage:   Typing the line "I want a ^Bbigger^b dog." displays as, "I want a bigger dog."

Italic

Use "^I" at the start of the portion which is to display in italics. To turn italics off, place a "^i" at the end of the italicized section of text.

Usage:   Typing the line "I want a ^Ibigger^i dog." displays as,  "I want a bigger  dog."

Underline

Use "^U" at the start of the underlined text. To turn the underscore off, place a "^u" at the end of the section of text which is to be underlined.

Usage:   Typing the line "I want a ^Ubigger^u dog."  displays as,  "I want a bigger dog."

Strikeout

Use "^x" at the start of the strikeout text. To turn the strikeout off, place a "^x" at the end of the section of text which is to be strukout.

Usage:   Typing the line "I want a ^Xbigger^x dog."  displays as,  "I want a bigger dog."

Reverse Video

Use "^R" at the start of the portion which is to display as reversed text (e.g., white text on black background). To return the text to normal, place a "^r" at the end of the section of text which is to be reversed.

Usage:   Typing the line "I want a ^Rbigger^r dog."  displays as: "I want a BIGGER dog."

Font Size

Use "^F" followed by a number indicating the new point size at the start of the text. To return the default font, place a "^f" at the end of the section of text.

Usage:   Typing the line "I want a ^F14bigger^f dog."  displays as,  "I want a bigger dog."

Color

Use "^P" followed by a number from the chart below indicating the new color at the start of the text. To return to the default color, place a "^p" at the end of the section of text.

0=Black
1=Maroon
2=Green
3=Olive
4=Navy
5=Purple
6=Teal
7=Gray
8=Silver
9=Red
10=Lime
11=Blue
12=Fuchsia
13=Aqua
14=Yellow
15=White

Usage:   Typing the line "I want a ^P2green^p dog."  displays as,  "I want a green dog."

Tab

To tab text from the left margin, insert a "^T" followed immediately by a number. The number should represent the number of M-width (width of the "M" character) spaces from the left margin. To tab text from a spot within a line, insert a "^S" followed by the number of spaces to tab.

Usage:   Typing the line: "I want ^T16 a bigger dog."  displays as,

"I want a bigger dog."

Centering

If the center code is included on a line along with other codes listed above, the "^C" should be the innermost code. End centered text with "^c".

Usage:   Typing the line: "^B^CDogs For Sale^c^b"  displays as,

                            "Dogs For Sale"

Caret Symbol

If you need to display the caret character in your article, type two carets not separated by a space.

Usage:   Typing the line: "My rabbit wants a ^^!"  displays as,  "My rabbit wants a ^!"


(Edited by gk51 at 8:46 am on July 25, 2004)