Creating an XSL Commenter
Provided by: FMS Development Team
The diversity of the Visual Studio editor is awesome in that it handles
every kind of file and tries to color-code it. In some cases, however, the
comment characters may be somewhat cumbersome, e.g. <!--comment-->.
The Visual Studio editor has nothing to comment XSL lines, but you can
create an XSL commenter by using Visual Studio macros. Copy the function, in
the sample code section, to the Visual Studio Macro editor. To use this
macro, simply select code anywhere in the Visual Studio Editor and run it.
Sample Code
And you have a fully functional XSL commenter!
For more information, visit: FMS Tip on VS Macros
Return to the tips page
|