Within <$macro>
and <$deftag>
,
you can use several modifiers to tell hsc how to handle this macro/tag.
<$macro>
and <$deftag>
are:
/CLOSE
(short: /C
)
/ONLYONCE
(short: /1
)
/REQUIRED
(short: /R
)
/RECOMMENDED
(short: /RCMD
)
/MUST_BE_INSIDE
(short: /MBI
)
<LI>
must be used inside some sort of lists only,
therefore /MBI="ul|ol|dir|menu"
is used.
The vertical bar (``|
'') is used as a separator for multiple tags.<$deftag P /MBI="BODY"> <body> <div> <p>Blah</p> </div> </body>
/NOT_ALLOWED_WITHIN
(short: /NAW
)
/MBI
, but this time tags that must not be
used before. For example, a nested usage of <A>
is not allowed, therefore /NAW="a"
is used.
<$deftag>
/AUTOCLOSE
(short: /AC
)
<P>
and <LI>
, which can be used as container
or single tag depending on the HTML version. Tags marked with this
modifier can not be nested.
/EMPTY
(short: /E
)
<BR>
, <IMG>
,
<HR>
etc. In HTML mode, they simply must not have a closing tag. In
XHTML mode, they should have a trailing slash or a closing tag
immediately following. The latter is not supported yet, but HSC can
complete these tags with a slash if you forget it (or want to produce
HTML4 and XHTML documents from one source - not that I understood what
for...). Warning 88 will be issued when this happens.
/JERK
(short: /J
)
/LAZY
(short: /L
)
c
'' for ``CLASS:string
'',
``d
'' for ``DIR:enum("ltr|rtl")
'',
``h
'' for ``HREF:uri
'',
``i
'' for ``ID:id
'',
``k
'' for ``CLEAR:bool
'',
``l
'' for ``LANG:string
'',
``m
'' for ``MD:string
'',
``s
'' for ``SRC:uri
'',
``t
'' for ``TITLE:string
''.
``y
'' for ``STYLE:string
''.
``v
'' for ``events
''./LAZY="cil"
.onclick, ondblclick, onmousedown, onmouseup,
onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
.
These are the most frequent attributes, collected under an entity in HTML
4.01.
/OBSOLETE
(short: /O
)
<LISTING>
.
/SKIPLF
(short: /S
)
/SPECIAL
(short: /SPC
)
<!>
(for SGML comments).
/WHTSPC
(short: /W
)
<A>
, <TITLE>
, headings and physical/logical
styles like <B>
or <strong>
.