The PRAHN Specification
Version 1.2
-----------------------
NOTE: the [ ] used throught this spec are NOT typed in the script
Tables and Frames are planned, but work has yet to commence on them.
1. Header
The header will consist of 5 lines. These lines are numbered
in the following block. C++ style comments will follow each line.
1 PRAHNScript //Case doesn't matter here
2 [fullcsspath] //Full path to style sheet which page uses.
//DEFAULT placed here uses the default style sheet,
//which is black text on white bg
3 [title] // Title of page
4 [hexcolor] // background color of page
5 BR_[number] //Number of < BR > tags after each line(in final HTML)
//If tag is excluded, BR_0 is assumed
WARNING: Anything placed BEFORE the BEG tag will be placed in the header!
line 5 exists as a way to automatically add line breaks without having to
use BR_[number] whenever a line break needs to be added.
2. Available Tags
1) BR_[number]
Specifies that [number] of < BR > tags need to be added in that position.
2) FN_[size]:[hexcolor]
Specifies the font color + size to use until the _FN tag.
3) _FN
Ends block which FN_ tag affects.
4) PR_[filepath]
Inserts a text file [filepath] as paragraphed text. After each blank line
starts a new paragraph, and ends the last paragraph. HTML Tags can be
used in the text file for bold, italic, etc... Does not include < BR > tags
after each line read.
5) PB_[filepath]
Inserts a text file [filepath] as paragraphed text. After each blank line
starts a new paragraph, and ends the last paragraph. HTML Tags can be
used in the text file for bold, italic, etc... includes < BR > tags after each line
6) Headers
1) H1_[headertext]
2) H2_[headertext]
3) H3_[headertext]
4) H4_[headertext]
5) H5_[headertext]
Inserts a header of level 1-5, 1 being largest.
7) CE_
Begins the centering of anything after this tag and before _CE
8) _CE
Ends centering of elements.
9) BEG
Tells interpreter to put < /head > and put < body bgcolor=[hexcolor] >
10) IC_[filepath]
Includes a file. This tag tells the interpreter to place ALL text in the
file into the HTML document. Useful for JavaScript.
11) Style Tags
1) BO_ and _BO Bold
2) IT_ and _IT Italic
3) SL_ and _SL Slash through
4) UL_ and _UL Underline
12) IM_[imagepath]:[bordersize]:[Alttext]
Image tag, first the path to the image, the second is
the border color, and the third is the border size.
13) END
tells interpreter to put < /body > and < /html > tags and to close file.
14) AA_[docname]:[linktext]
Makes a link to [docname]. Makes a single link.
15) AW_[docname]
Makes a wrapper link.
16) _AW
Ends a wrapper link.
17) TX_
Inserts a line of text.