Indentation of elements but not of comments
Posted: Mon Jan 27, 2020 9:05 pm
I want to indent the elements in an XML document. Tools>Format and Indent Files lets me do this. To specify the indentation, I can use Options>Preferences>Editor/Format/XML.
Some of the elements have comments at the end of a line. Example:
I want the pattern element to be indented, but I don't want the comment on a new line. (I tried to use Elements Spacing, but I could not make it do what I want.) Is there a simple way to do what I want?
Mike Unwalla
www.techscribe.co.uk
Some of the elements have comments at the end of a line. Example:
Code: Select all
<pattern><!-- This is a comment -->
Mike Unwalla
www.techscribe.co.uk