Community
Participate
Working Groups
Editing an ant build.xml file, I commented out some code by first adding "<!--" on a line, this caused the following text to be colored as a comment (as expected). I then added the closing "-->" at the end of the next line and saved the file, the syntax coloring for the lines after the comment close did not revert back to uncommented syntax highlighting. Modifying the incorrectly colored lines in some way will restore their correct highlighting
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Created attachment 279796 [details] Image showing lack of highlighting being applied after a comment
This issue still remains. Running Eclipse 2019-06. Easily reproducible by having an ant build.xml file with existing targets, and then adding a comment in the target. Note that this lack of re-running the syntax highlighting can also be seen if one pastes valid .xml from another ant build into an existing file -- the highlighter does not run against the pasted text. Example: <target name="jar" depends="blah"> <jar destfile="file"> ... </jar> </target> Above the "<jar", add "<!--". The "<jar" and subsequent text will be faded as a comment (as expected). Then hit return and "-->". The text will not be re-highlighted.
(In reply to Kevin O from comment #2) > Created attachment 279796 [details] > Image showing lack of highlighting being applied after a comment Which platform are you trying on? I see it working on Mac.