Innertext, Customtext, Outertag – Adobe Extending Dreamweaver CS4 User Manual

Page 64

Advertising
background image

58

EXTENDING DREAMWEAVER CS4

Customizing Code view

innerText

This value tells Dreamweaver to color the block delimiters the same as the default text of the scheme inside them.

The Template scheme provides an example of the effect of this scheme. The Template scheme matches blocks of read-
only code that are colored gray because you cannot edit them. The block delimiters, which are the

<!#EndEditable

-->

-- and

<!-- #BeginEditable "..." -->

strings, are also colored gray because they also are not editable.

Sample code

<!-- #EndEditable -->

<p><b><font size="+2">header</font></b></p>
<!-- #BeginEditable "test" -->
<p>Here's some editable text </p>
<p>&nbsp;</p>
<!-- #EndEditable -->

Example

<blockStart doctypes="ASP-JS,ASP-VB, ASP.NET_CSharp, ASP.NET_VB, ColdFusion,CFC, HTML,

JSP,LibraryItem,PHP_MySQL" scheme="innerText"><![CDATA[<!--\s*#BeginTemplate]]>
</blockStart>

customText

This value tells Dreamweaver to use custom colors to color the block delimiters.

Sample code
The delimiters for blocks of PHP script, which appear in red, provide an example of the effect of the

customText

value:

<?php

if ($loginMsg <> "")
echo $loginMsg;
?>

Example

<blockStart name="Block Delimiter" id="CodeColor_JavaBlock" doctypes="JSP"

scheme="customText"><![CDATA[<%]]></blockStart>

outerTag

The

outerTag

value specifies that both the

blockStart

and

blockEnd

tags are complete tags and that Dreamweaver

should color them as tags would be colored in the scheme that surrounds them.

The JavaScript scheme, in which

<script>

and

</script>

strings are the

blockStart

and

blockEnd

tags, provides

an example of this value. This scheme matches blocks of JavaScript code, which does not recognize tags, so the
delimiters need to be colored by the scheme that surrounds them.

Sample code

<script language="JavaScript">

// comment
if (true)
window.alert("Hello, World");
</script>

Advertising
This manual is related to the following products: