Bug 484336

Summary: [html] HTML bracket matching
Product: [ECD] Orion (Archived) Reporter: Carolyn MacLeod <Carolyn_MacLeod>
Component: JS ToolsAssignee: Curtis Windatt <curtis.windatt.public>
Status: REOPENED --- QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, steve_northover
Version: unspecifiedKeywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Carolyn MacLeod CLA 2015-12-14 12:03:24 EST
Would be nice to have bracket matching on < and > in html files.

Should be able to use the JS bracket matching code (originally done in bug 363521).

Related to bug 472311.
Comment 1 Carolyn MacLeod CLA 2015-12-14 12:17:39 EST
See also bug 484338.
Comment 2 Curtis Windatt CLA 2015-12-15 10:09:00 EST
If this is just going to match angle brackets, I don't see it as being very useful.  I don't typically have an element tag that is very long or broken up over multiple lines.  Highlighting matching tags would be far more useful.
Comment 3 Carolyn MacLeod CLA 2015-12-15 18:33:50 EST
Some of the ARIA stuff can add quite a few attributes, and your > can get lost in the noise.

An example from https://www.canada.ca/en.html:
<a href="#immigration" class="item gl-menu" tabindex="-1" aria-posinset="2" aria-setsize="8" role="menuitem" aria-haspopup="true">Immigration<span class="expicon glyphicon glyphicon-chevron-down"></span></a>

An example of a long image url from https://www.gov.uk/:
<img alt="" role="presentation" style="position: absolute; left: -9999em; height: 0px; width: 0px;" src="https://assets.digital.cabinet-office.gov.uk/frontend/homepage/no-cache/base-js-8337212354871836e6763a41e615916c89bac5b3f1f0adf60ba43c7c806e1015.gif">
etc.

Also, say you forgot the > in that first example. The < would match the end of the span tag, and you would notice that something was amiss... which would be nice:
<a href="#immigration" class="item gl-menu" tabindex="-1" aria-posinset="2" aria-setsize="8" role="menuitem" aria-haspopup="true"Immigration<span class="expicon glyphicon glyphicon-chevron-down"></span></a>

Anyhow, I do agree that generally it would be cooler and more useful to have tag-matching. It must be fairly easy to add < > matching?
Comment 4 Michael Rennie CLA 2017-01-10 15:44:03 EST
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg04002.html
Comment 5 Carolyn MacLeod CLA 2017-05-12 07:43:07 EDT
Double-click bracket matching would still be nice. It just feels like it is "broken" in the html editor because I am used to having it in the js editor.