Adobe Extending Dreamweaver CS4 Manuel d'utilisateur Page 62

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 387
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 61
56
EXTENDING DREAMWEAVER CS4
Customizing Code view
Example
<sampleText doctypes="JavaScript"><![CDATA[/* JavaScript */
function displayWords(arrayWords) {
for (i=0; i < arrayWords.length(); i++) {
// inline comment
alert("Word " + i + " is " + arrayWords[i]);
}
}
var tokens = new Array("Hello", "world");
displayWords(tokens);
]]></sampleText>
<searchPattern>
Description
A string of characters that define a regular search pattern using supported wildcard characters. Multiple
searchPattern tags are allowed.
Attributes
None.
Container
The regexp tag.
Example
<searchPattern><![CDATA[(\s*/\e*\\/]]></searchPattern>
<stringStart>
Description
These tags contain a text string that represents the delimiter of the start of a string. You must specify the stringStart
and
stringEnd tags in pairs. Multiple stringStartstringEnd pairs are allowed.
Attributes
name, id, wrap
name="stringStart_name" A string that assigns a name to the stringStart block.
id="id_string" Required. An identifier string that maps color and style to this syntax item.
wrap="true" or "false". Defines whether code coloring recognizes text strings that wrap to the next line. The
default is
"true".
Example
<stringStart name="Attribute Value" id="CodeColor_HTMLString"><![CDATA["]]></stringStart>
Vue de la page 61
1 2 ... 57 58 59 60 61 62 63 64 65 66 67 ... 386 387

Commentaires sur ces manuels

Pas de commentaire