On Wed, 27 Aug 2008 23:54:43 +0000 (UTC), "MReaction"
>I've been waiting for years for Dreamweaver to have this option, does anyone
>knows if there's an option or an extension to activate this very helpful
>option? When you click on a <div> it will highlights it as well as its closing
></div>, same thing for all tags.
> I'm using PSPad (freeware) just because of this functionality that is so
>helpful. I can't believe Adobe never thought of it, even in CS4 I couldn't find
> Please let me know if you are aware of such a function.
> Thanks a lot.
In the bar just below the code window, click on an opening tag and its
matching closing tag and everything in between will be selected.
Wild Rose Websites www.wildrosewebsites.com
There is a function that will highlight (in yellow) code errors found in
code view. Look on the code view toolbar to find that one.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
"MReaction" <firstname.lastname@example.org> wrote in message
> Thanks, I didn't know that, it's better than nothing but is there an
> that does this automatically, no need to click anywhere and that
> only the tag not the entire page and it turns red when there's no closing
> matching tag?
The answer is: You can't do it.
Not sure why Newsgroup_User has replied twice with answers that are not solutions at all!
Finding a matching tag in an HTML editor should be a standard and basic function. Has nothing to do with code validation. Sometimes you just want to see where a tag begins and ends. When looking at a closing tag, you might just want to see which opening tag it belongs to. On large HTML files, it can be a challenge to see what belongs to what.
In homesite, you would just click CTRL-M on any tag, opening or closing, and it would jump to the matching tag and highlight it. VERY useful as you're coding. It has nothing to do with validating and checking the document as a whole - which would come at the end. It's purely a visual aid, as you go, and a very useful one at that.
Ok, so that does work, as clumsy as it is, I never noticed this code bar thing, and that it could be clicked. But this solution still lacks a keyboard shortcut. There's no way I'm going to be clicking the tiny tag names in the code bar just to find a matching tag! Clicking the wrong tag accidently, means you lose your place in the code. There must be a better way.
And there is. I have since discovered the "select parent tag" function under the Edit menu, or CTRL [. This is a much easier and quicker way to find the matching tag.
Dreamweaver is therefore off the hook on this issue. Although, both ways still don't jump you to the matching tag, so highlighting everything in between will have to do, even though I have no need for everything in between to be selected. Still prefer Homesite's CTRL-M for the literal interpretation M for 'Match'.
Year old post? So what? Better to reply to an existing unaswered topic than create a new one. Status is "possibly answered" anyway.
Thank you fizz for the thoughtful response! I've been using CTRL + [ since I read your post and it was the only thing keeping me from using dreamweaver at the time.
Honestly I still find this a disadvantage and would prefer to see the closing and opening tags highlighted automatically when you click on them or when your insertion mark is on the tag. It saves a lot of time in the long run and I also can't believe adobe did not think of it earlier. Let's go Adobe!
Also I'd like to add that in some documents, such as XSL's in CS4 - the option to click the tag name at the bottom of the window is not available. The only consistent solution I have found so far is the CTRL + [ method.
I've moved onto Notepad++ now as my primary HTML editor. Funnily
enough, even that didn't have the jump-to matching tag feature without
installing a plugin. It has highlightling as Dreaweaver does, but not
jumping to the matching tag. Luckily, the plugin was easily
available, can install from within Notepad++ and now to jump to the
matching tag I just press CTRL-T, which is what you want!
Just to clarify all this, the OP only wanted highlighting of matching
tag, which Dreamweaver does, so case closed on that. But my point was
that jumping to the matching tag in even better, done in one step with
a shortcut key is very useful. Often, for example, you want your
cursor at the point where the current div ends and the next one
starts. Hence finding and jumping to the matching tag in one step is
so useful as you edit. It's amazing that most HTML editors don't do
this. Homesite did it. Notepad++ does it after you install the plugin
called "HTML Tag".