Notepad++ and syntax highlighting for non-default file extensions

No Gravatar

Thanks to this article (http://www.mattblodgett.com/2007/11/notepad-tip-syntax-highlighting-for.html) for helping me fix an annoyance with Notepad++.

I often use Notepad++ as a lightweight editor for scripts.  However, some script files like .wsf are not a recognized language and I have to manually select Language | VB from the menu bar.

As Matt Blodgett points out, you can add custom extensions to a language by editing the settings in Settings | Style Configurator… | <select the Language> | <type User ext.> | Save & Close.

It’s very easy, just not obvious.  Matt wrote his article 5 years ago and .wsf still hasn’t been added as a VB of Javascript language by default. 🙁

March 6, 2013

Posted In: Scripting