153
Special variables
In addition to the
CONTROL
variables, a few other parameters get sent to the tag layout
template:
•
OPTIONLowerCaseTags — returns true or false. Specifies whether the tag
should be generated using lowercase.
•
EDITORTagIndentString — maintains indentation for tag attributes and body.
•
OPTIONLinearLayout — returns true or false. Specifies whether the tag should
be generated with its attributes in a single line or not.
•
TAGDATAUnknownAttributes — a string containing all attributes which were
contained in the edited tag string but are not recognized by the editor.
Using OPTIONLowerCaseTags
You can use this parameter to create a layout template, which generates a tag in lower
or upper case based on user preferences. Here is a version of the MYTAG layout
template responding to case preferences:
<TAGLAYOUT>
<WIZIF OPTIONLowerCaseTags EQ 'true'>
<mytag color="$${colorBGColor}">
<WIZELSE>
<MYTAG COLOR="$${colorBGColor}">
</WIZIF>
</TAGLAYOUT>
Maintaining tag indentation
The variable
EDITORTagIndentString
contains an indentation string for the currently
selected tag. If the start tag is indented using tabs and characters, the string is
represented as the corresponding combination of tabs and spaces. This variable can be
used to correctly indent tag attributes, as well as tag body contents for tags which are
already indented.
Using OPTIONLinearLayout
Some people like their tag attributes in a single line while others like them indented.
Here is a version of the MYTAG layout template responding to such preferences:
<TAGLAYOUT>
<WIZIF OPTIONLinearLayout EQ ’true’>
<WIZSET Spacer = ’ ’>
<WIZELSE>
<WIZSET Spacer = Chr(13) & Chr(10) & ’ ’>
</WIZIF>
Summary of Contents for COLDFUSION STUDIO 4.5-USING COLDFUSION...
Page 1: ...Allaire Corporation Using ColdFusion Studio ColdFusion Studio 4 5 for Windows 95 98 NT4 2000...
Page 16: ...xvi Contacting Allaire...
Page 90: ...82...
Page 130: ...122...
Page 133: ...141 Two VTML tags CAT and E let you customize the content of these dialog boxes...
Page 182: ...190...