Edit .CMD files with Visual Studio Editor

Do you use Visual Studio to edit Windows batch files? Do you want these .bat or .cmd files to show up with all the colors you see in your C# files?

If this is what you seek, then let me point you to the TextHighlighterExtensionSetup by Frederic Torres (you can use Visual Studio, Tools->Extension Manager to obtain it, or do the following steps).

Step 1: Install the Iron Python 2.6 or greater (for .NET 4). It was a one or two click install, I didn’t change any settings, it just worked. Try this link: http://ironpython.codeplex.com/releases/view/41236#DownloadId=159515 or get 2.7 here: http://ironpython.codeplex.com/releases/view/62475. If the link is no good, just go to Iron Python, click on the Download menu, and get the latest download.

Step 2: Get and install the .CMD extension itself: http://visualstudiogallery.msdn.microsoft.com/6706b602-6f10-4fd1-8e14-75840f855569 If this link dos not work, go to the Visual Studio Gallery and search for TextHighlighterExtensionSetup (note, there are a few search boxes, make sure to use the one that searches the extensions).

For another useful extension, see also Spell Checker which adds the little red underline to misspelled words in comments. Very nice.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>