Syntax highlighting for alternative file ext. in VS.NET

I really like VS.NET. It's really great. But I'm starting to question my own iq here as I just used over one hour figuring out how to get xml syntax highlighting in my NAnt build files.

I went all over the Options in the IDE, all the config files in the vs.net dir and finally the registry.. in the registry I actually found some stuff related to syntax highlighting and file associations but it didnt work. Then I had a look at the vsdir\common7\packages\schemas dir where you can add custom intellisense stuff.. nothing..

finally the solution was: Open File -> (tiny tiny drop down in open window) Open With! <- which gave me the possibility to choose between the different VS.NET editors (of course I thought Open With would let me choose external editors)..

Then it was just to set it as standard and open the NAnt .build file..

hate it when things are too simple. but it gave me the idea to make an intellisense schema for NAnt:)

No Comments