Find matching HTML tag

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
Post Reply
Ryan Williams
Posts: 43
Joined: Tue Nov 14, 2006 2:27 pm

Find matching HTML tag

Post by Ryan Williams »

One thing I noticed that PSPad can do is highlight two parts of one HTML tag. So for example, if you have a million nested <table> tables and need to find the </table> that matches a certain one, this can be done within seconds as they're both highlighted -- just like the bracket matcher in WeBuilder.

This is a fairly superb feature and I'd absolutely love to see it in WeBuilder. With that said, is there any way I'm missing of doing this already, or tracking down matching tags via some kind of search?
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

Unfortunately, no. You can however highlight all text within a block, which could help identify the end of the block. A slight help ... or a hinderance... ;)
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

hopefully you're not nesting tables anymore! there's a better way to build pages and you don't need to sort through all that code.

I use what chris suggested to select the entire tag block - at the end of the selection is the closing tag.

I really really really try to comment my closing containers when building the template though.

Code: Select all

<div id="header">

</div> <!-- /header -->

<div id="content">

</div> <!-- /content-->

before I even put anything in it.
Ryan Williams
Posts: 43
Joined: Tue Nov 14, 2006 2:27 pm

Post by Ryan Williams »

Yeah, there's definitely no substitute for clean code, and when tables are necessary for compatibility they can always be written in a reasonably semantic manner. However, I'm often given HTML that was generated by Dreamweaver and the like to work with, and the table structure is an absolute nightmare to work out.

I had no idea about the select block function though, and that works pretty much as well as I need. Thanks a lot! :)
Post Reply