Special Variables - MACROMEDIA COLDFUSION STUDIO 4.5-USING COLDFUSION STUDIO Use Manual

For windows 95/98/nt4/2000
Table of Contents

Advertisement

Special variables

In addition to the
template:
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>
Maintaining tag indentation
The variable
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>
variables, a few other parameters get sent to the tag layout
CONTROL
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.
<WIZIF OPTIONLowerCaseTags EQ 'true'>
<mytag color="$${colorBGColor}">
<WIZELSE>
<MYTAG COLOR="$${colorBGColor}">
</WIZIF>
</TAGLAYOUT>
EDITORTagIndentString
<WIZIF OPTIONLinearLayout EQ 'true'>
<WIZSET Spacer = ' '>
<WIZELSE>
<WIZSET Spacer =
</WIZIF>
contains an indentation string for the currently
Chr(13) & Chr(10) & ' '>
153

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion studio 4.5

Table of Contents