PVII PowerToys
- Introduction and Overview
- Wrap DIV Tag
- Insert Comment Tag
- Insert IE Conditional Comment
- Insert Style Block
- Insert JavaScript Block
- Make Null Link
- Apply Return False
Comment Tag PowerToy
The Insert Comment Tag PowerToy allows you to quickly insert a pair of comment tags anywhere in your code. You can also apply comments tags to any selected portion of your code. This makes short work of adding comments (or commenting out portions of your code). You just position your insertion point or select the code you wish to comment, right-click and select Insert Comment Tag from the PowerToys context menu, then select the type of comment you wish to apply. The comment tag pair will automatically wrap around any code that you've selected - making it easy to comment out (disable) a particular style sheet declaration or code fragment.
Note: The Insert Comment Tag PowerToy will only be available when you are in Code View, it will not be listed on the context menu when you are in Design View.
The Insert Comment Tag PowerToy allows you to select from one of four different comment tag types:
- HTML Comment -Normal html markup comment tag: <!-- ... -->
- Multi-Line CSS/JS - Style Sheet and multi-line JavaScript code comment tag: /* ... */
- Single-Line JS -Single line JavaScript code comment tag: // ...
- Cold Fusion Comment -Cold Fusion style markup comment tag: <!--- ... --->
Creating an empty set of comment tags
-In code view, click on the section of the page where you would like to create the new comment tag (this is the insertion point)
-Right-click and select PVII PowerToys - Insert Comment Tag
-From the menu flyout select the type of comment tag you wish to use, in this example we'll use the html comment type.
A new pair of comment tags will be added to the page at the insertion point. Your cursor will be positioned inside the newly created comment tag, ready for you to enter your comment.

Wrapping existing code with a pair of comment tags
-In code view, select the code or markup you wish to wrap with the comment tag. We'll use two style declarations within a CSS rule for this example.

-Right-click and select PVII PowerToys - Insert Comment Tag -Multi-Line CSS/JS

A new pair of comment tags will be wrapped around the selected code. The entire construct, including the newly added pair of comment tags, will remain selected. Click anywhere else on the page to deselect it.
User Notes
Use Care -This PowerToy will wrap or insert the selected comment tag at your current insertion point, wherever it is located. Be sure that the location will make sense to your code or html markup.
Undo -You can reverse the PowerToy insertion by using the Dreamweaver Undo feature (Select: Edit - Undo). This will restore your markup to the state prior to the PowerToy insertion.
