A line in the SCoT files that will be treated as a content line must have as a first character the sign for the blockbuilding tag it will get for its HTML representation. Blockbuilding tags are for example <h1>, <h2>, <p>, <table> or <ul>.
As well there are inline tags to be handled like <a> or <img>. Those inline tags where made up by so called commandos.
Blocks are marked by the first character of a content line in a SCoT file.
Character | Meaning |
---|---|
# | comment <!-- -->; may contain CGI commando |
' ' (blank or space) | paragraph <p> |
1 | header level one <h1> |
2 | header level two <h2> |
3 | header level three <h3> |
4 | header level four <h4> |
5 | header level five <h5> |
6 | header level six <h6> |
- | unordered list element <ul><li>; may be recursive |
+ | ordered list element <ol><li>; may be recursive |
? | definition list, term element <dl><dt> |
. | definition list, definition element <dl><dd> |
! | table header cell <table><tr><th>; line may have more than one such elements |
| | table cell <table><tr><td>; line may have more than one such elements |
_ | horizontla line <hr>; there may not be more text in this line |
@ | anchor <a>; must be followed by the name of the anchor |
~ | includes fragment; must be followed by the name of the fragment (without the suffix ".scot") |
> | marks a division <div>; may be substructured with any of the previous meanings |
{ | marks the attributes for the following meaning; must be ended with } and followed by any of the previous meanings; contains a semicolon seperated list of name-value-pairs for attributes of the following meaning (i. e. name, id or class) |
HINT: Unordered list and ordered list are recursive means that you can have a list in a list. The line for example "+-bla" Translates to <ol><ul><li>bla</li></ul></ol>. This can be of any depth.
HINT: Table cell and table header cell may be more than once in a line means that in a line like "|1\t!2\t!3" are three cells. The first one is a header cell containing "1", the second and third are usual cells containing "2" the second one and "3" the third one. In the example "\t" stands for the tabulator character.
As commandos are used in the midst of a line, they have a specific syntax. They beginn with an opening curly bracket followed by the commando itself. If one or more parameters follow they are separated from the commando and each other by semicolon. A closing curly bracket ends the commando.
Commando | Parameters | Description or Example |
---|---|---|
(HTML-)entity | none | the entity itself, for example nbsp or copy or even #123 for '{' and #125 for '}' |
# | ; comment | adds an inline comment; may be a CGI commando |
< | none | inserts a line break <br /> |
img | ; fileName; altAndTitleAttribute[; width; height] | adds an image; width and height are optional parameters |
a | ; displayedText; targetFile[; targetFrame] | adds a link; the default targetFrame is "_self" |
Back to overview.
Diese Seiten wurden mit SCoT nach folgenden Standards erstellt: xHTML 1.0, CSS 2.0.
Zuletzt geändert: