NppFileMagic plug-in for Notepad++


NppFileMagic is a plug-in for Notepad++ that is inspired by file(1) and libmagic(3). It is especially useful for people who work on cross platform projects. It tries to determine the file type of a file when it is opened and set the syntax highlighting. It also tries to recognize VIM modelines and adjust settings for that file accordingly.


To download version 1.0.0, click here.

How to install

Copy NppFileMagic.dll to the plugins directory and (re)start Notepad++.

Currently supported

Set syntax highlighting based on information found in the first line of a file

Support for VIM modelines to override default settings


Support more VIM modelines items, if possible

Wish List

Known Bugs


This plugin is released under the GPL2-license. The source code can be found at GitHub.

Release history

Version 1.0.0 (23 September 2015)