
Chapter 14
334
Writing and editing code
As you write and edit your code in the Code view (or Code inspector), you can
indent specific lines of code or check to make sure your tags are balanced.
Indenting a specific line or section of code will help you separate that code from
the rest, making it easier to find. Checking to see if your tags are balanced will
help you ensure that all the tags have matching opening tags and closing tags, and
is especially useful when you use multiple nesting levels in your code—for
example, if you have nested several tables within other tables.
To indent selected code:
1
Select the line or lines of code you want to indent.
For indenting to work, the whole line must be selected.
2
Choose Edit > Indent Code.
The code will be indented. Choose Edit > Outdent Code to move indented
code back.
To check for balanced tags:
1
Place the insertion point in the nested code you want to check.
2
Choose Edit > Select Parent Tag.
The enclosing matching tags will be highlighted in your code. Choosing Edit >
Select Parent Tag again will highlight the matching tags that enclosed the
previous selection.
Summary of Contents for 38028779 - Macromedia Dreamweaver - Mac
Page 1: ...macromedia Using Dreamweaver...
Page 148: ...Chapter 4 148...
Page 296: ...Chapter 12 296...
Page 472: ...Chapter 18 472...
Page 512: ...Chapter 21 512...
Page 562: ...Appendix 562...