Element statement
An element statement may be with or without content:
An element statement may be with or without content:
Content may be expanded or condensed:
Multiple lines of content may be be written as a literal or as default content:
Multiple elements may be individual statements or a single expression:
Optional features are of the form:
name#id.class1.class2.class3[attributes]?:
An element needing the colon character (
If an element name is not specified, the element is a default element.
Only an element with a colon character (The default name of a default element is assumed to be div
.
The first element with a present but empty attribute string is a model element.
Only an element with a colon character (The model element determines the name for any remaining default element.
A self-closer for an element requires an attribute string, even if empty, and two consecutive trailing forward slash characters (
A self-closer with a single trailing forward slash character (
A section is a titled portion of a document.
Optional section features are of the form:
[Title]# heading/section property & attributes
div
h1
A section closer closes the most recently open section.
Extra square brackets in a section closer are for closing multiple recently open sections.
A single section closer with a trailing asterisk character (
If no other section is open, a section is placed in the most recently open element that has no content (content literal, condensed content, or default content).
e.g. comments do not affect section placement.
If a section is open, any new section (of the same level indicator) is placed in the same element.
Closed sections do not affect section placement.
A section is placed within another section by level indicator.
A smaller section level is indicated by extra dots around the title.
A larger section level is indicated by extra square brackets around the title.
Standard element processing is ignored in any literal.
The toggle and text of a literal must not be on the same line.
Native HTML or any other text is possible between tripled double-quotes:
The close tag of a native HTML element can be shortened between tripled single-quotes:
Native HTML is transformed into regular text between tripled backquotes:
Literals placed within an element may be expanded or condensed:
Literals placed within a section may be non-justified or justified:
The special case of the justified condensed common literal is known as the true literal.
No additional spacing or indentation is added to the the literal's content. No transformation of the content text occurs either.
The true literal is necessary for XML authoring, but may be appropriate for e.g. textarea
and pre
preformatted text.
A single line of text is commented with a leading left angle bracket (
Multiple lines of text may be commented with a leading and trailing tripled exclamation mark (
The behavior of a comment literal is similar to a content literal.
The native HTML comment is encouraged and necessary when, e.g. midway in a line.