First issue: Go to Tools->Options then click Text Editor, then click HTML/XML, then click HTML specific and uncheck the Close Tag check box. You might want to do the same for XML specific if you're editing config files. Second issue (not tested, but I have a hunch that it'll work): Go to Tools->Options then click Text Editor, then click HTML/XML, then click Format. Take a look at the Apply Automatic Formatting section. Andy Gaskell, MCSD MCDBA