Contents | Parent Topic | Previous Topic | Next Topic
Home | Catalog
To escape a special character at the start of a line, precede it with a backslash character (\).
Like special characters, any special pattern at the start of a line can be escaped by preceding it with a backslash character (\).
Consider the following example:
Important:
This paragraph has a tag called Important and has no text. sdf will warn you if it finds an unknown tag so most unintentional errors like this are detected. You can escape the pattern like this:
\Important:
Other workarounds are:
:Important: N:Important:
SDF uses a number of special symbols inside paragraphs:
If you need to include one of these symbols in a paragraph, use the appropriate escape as shown below.
Symbol Escape < E<lt> > E<gt> {{ E<2{> }} E<2}> [[ E<2[> ]] E<2]>
Note the following rules:
For paragraphs which do not have the verbatim attribute set, the parsing rules for the paragraph text are:
!-style macros can be continued onto the next line by ending the line with a backslash character (\). To escape this backslash, use another one. If N backslash characters are found at the end of a line where N is greater than 2, then that line is terminated by N-1 backslash characters and the macro is continued onto the next line.
As expressions embedded within text are terminated by the ]\] symbol, expressions cannot contain this character sequence. If you need this sequence within an expression, there is usually a simple workaround you can use. For example:
If you need to include a real semi-colon within an attribute or parameter, use two semi-colons. In general, if you need to include a sequence of N semi-colons in an attribute expression, use N+1 semi-colons. For example:
To install {{P[index="myApp;;install:myApp"]myApp}}, ...
In this case, the value of index is
Contents | Parent Topic | Previous Topic | Next Topic
Home | Catalog