Archive for the Category nant


Enable syntax highlighting to the nant build files (VS 2003).

  • Create the key foo as shown here
  • Inside that key create a new string value called "unused" (no quotes) and
    in the data portion enter "HTML" (no quotes)
  • For the default value copy the guid from the editor you want to emulate
    for the .build extension. I used the GUID from the default value in .xml key
    here "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\Languages\File
  • Restart the shell, open a new web project, add an existing .build file
    (actually your nant file), open the file, and you should get the proper
    syntax highlighting.