Community
Participate
Working Groups
Created attachment 234578 [details] Screenshot of exactly what I'm talking about When editing an XML file, the outline view shows comments as a line with a green !-- icon, and the word #comment. It would be more useful if instead of - or in addition to - the comment word, it showed the first few words of the comment itself (with line breaks removed). This text currently shows up in the tooltip, but would be more useful as the text of the outline row itself. This would allow you to place marker comments in your XML, and be able to see them in the outline view with a quick visual scan.
How many is the ideal "first few"?
How about this: Show from the first non-white space character after the <!-- to the first line break after that, or the --> terminator Example: <!-- This is text--> And <!-- This is text --> And <!-- This is text --> And <!-- This is text This is a second line of text --> All would show "This is text"
(In reply to Matthew Harrah from comment #2) > How about this: Show from the first non-white space character after the <!-- > to the first line break after that, or the --> terminator [...] > > All would show "This is text" That's a very good starting point which suffices the majority of use cases. Was something already done regarding this issue?
The outline of Maven POM editor has this feature already and behaves like Matthew's description.
And now implemented in the general XML, HTML, and JSP Editors, plus with a few caveats, filterable in their quick outlines.