Saturday, January 8, 2011

PowerShell color coding for Visual Studio 2010

I updated my Visual Studio extension TextHighlighter and added support for PowerShell and Cmd files. .Cmd file edited in Visual Studio 2010 will have the same color coding as a .Bat file.
In summary the TextHighlighter extension provides color coding in Visual Studio 2010 for:
  • .Ini file
  • .Txt and .Log files based on customizable regular expressions
    • Ship with special rules to visualize MSBuild log file
  • .Bat and .Cmd files
  • .Ps1 file (PowerShell)
    • Multi line strings and commenst are not supported. I cannot figure out how to do this in the TokenTagger class method GetTag().
    • Help wanted





To install the extension in Visual Studio, Click menu Tools -> Extension Manager. And enter the keyword TextHighlighter in the search for the gallery.





2 comments:

  1. Could you update the installer to handle systems where IronPython 2.7 is installed? It seems to be hardcoded right now for IP2.6 -- as witness this directory is listed as not being found (when I tried to run the extension in VS2010): C:\Program Files (x86)\IronPython 2.6 for .NET 4.0\Lib

    Thanks,
    J

    ReplyDelete
  2. powershell module (.psm1) file extension.
    How?

    ReplyDelete