Adobe 38040334 - Dreamweaver CS3 User Manual page 275

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

The parameter names should match the ones that are specified in the insertion text and the update parameters.
Parent
searchPattern
Type
Attribute.
Required
Yes.
Values
,
paramName1
paramName2
Each parameter name should be the exact name of a parameter that is used in the insertion text. For example, if the
insertion text contains
@@p1@@
<searchPattern paramNames="p1">patterns</searchPattern>
To extract multiple parameters using a single pattern, use a comma-separated list of parameter names, in the order
that the subexpressions appear in the pattern. Suppose the following example shows your search pattern:
<searchPattern paramName="p1,,p2">/(\w+)_(BIG|SMALL)_(\w+)/</searchPattern>
There are two parameters (with some text in between them) to extract. Given the text:
subexpression in the search pattern matches
the
value). The third subexpression matches
paramName
limitSearch
Description
This attribute limits the search to some part of the
Parent
searchPattern
Type
Attribute.
Required
No.
Values
,
all
attribute+attribName
• The
value (default) searches the entire tag that is specified in the
all
• The
attribute+attribName
following example:
<searchPatterns whereToSearch="tag+FORM">
<searchPattern limitSearch="attribute+ACTION">
/MY_PATTERN/
</searchPattern>
</searchPatterns>
, ...
, you should define exactly one parameter with that name:
, so
a
p1="a"
whereToSearch
,
,
tagOnly
innerOnly
value searches only within the value of the specified attribute, as shown in the
. The second subexpression is ignored (notice the
, so
.
b
p2="b"
tag.
whereToSearch
DREAMWEAVER CS3
Extending Dreamweaver
, the first
<%= a_BIG_b %>
in
,,
attribute.
269

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents