In the excellent book, ColdFusion MX Bible by Adam Churvis, Hal Helms, Charlie Aerhart, AND David Churvis, they give a tip for better coding called the “F5 Yellow Comment”  I tried it out when I first read the book and I’m a believer !!!  It’s a simple setup option for CF Studio (and I’m presuming Homesite as well) that enables you to just hit the F5 key and you’ve got a CF Comment tag started and most importantly your comment text is backgrounded with yellow—just as I show it here if you’re getting this email in HTML format.

 

So, question: does anyone know how you can apply a background color to any arbitrary line of code, not a particular type such as say an HTML anchor tag.  What I would like to be able to do it apply a bg-color to a starting tag line and the the same bg-color to the ending tag line.

 

You know how can say start a <div id=”wrapper”> tag and then sometime later you close that </div>.  Just like the yellow bg-colored comments standout and draw attention to themselves, it would be equally helpful (to me at least) to be able to highlight the starting line of some code and then highlight the ending line of that code-block. Not necessarily permanently, but as a highlighter formatting you can turn off, on, or change color, just like in a conventional text editor.

 

YES, I do use indenting to accomplish idea now, but when you get to the end of a long page of markup and have something like:

 

</div>

            </div>

</div>

</body>

 

it’s not really clear which ending </div> is applying to which starting <div …> and what if you overlooked ending the tag? Sure a validater may find the mistake for you, but a visual reference could help avoid the mistake in the first place.

 

Anyone have any ideas on how, or even if, to accomplish this in CF Studio?

 

 

Thanks,

 

 

 

 

Dan Kaufman

 

 

 

An Elephant Never Forgets

[EMAIL PROTECTED]

 

Reply via email to