
218
Part II
Designing and Crafting Basic Pages
Line Numbers
■■
—Toggles the line numbers on the left of Code view.
Highlight Invalid Code
■■
—Marks broken code with a yellow highlight.
The last two options, Line Numbers and Highlight Invalid Code, are also found in the View Options
menu option of the Document toolbar.
Commenting code
The next two buttons of the Coding toolbar focus on comments. Because Dreamweaver is a Web
page editor, you’ll find a variety of different types of comments available under the first menu but-
ton, Apply Comments:
<!--
■■
HTML Comments -->
//
■■
CSS or JavaScript single line style comments
/*
■■
CSS or JavaScript block style comments */
‘
■■
Visual Basic single line style comments
ASP, ASP.NET, JSP, PHP, or ColdFusion style comments, depending on the application
■■
server used
Each of the comments options wrap a selection in the chosen comment style; in the case of single
line style comments, the comments are placed at the start of each selected line. If no code is high-
lighted, an empty comment of the desired type is inserted.
The Remove Comment button follows Apply Comment. The Remove Comment feature uncomments
any selected code and will remove multiple comments unless they are nested. In the case of nested
comments, only the outer comments are deleted.
Manipulating CSS
CSS has become an integral element of the Web designer’s tool chest and its code is frequently entw ...