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.
NppFileMagic.dll to the
plugins directory and (re)start Notepad++.
Set syntax highlighting based on information found in the first line of a file
Support for VIM modelines to override default settings
ts: set the tab width
et: tab key produces spaces
noet: tab key produces tabs
Support more VIM modelines items, if possible
wrap: wrap lines
nowrap: don't wrap lines
tw: at what line does the text wrap
syn: specify the syntax highlighting used for the file
.editorconfigfile exists and sets tabs and a VIM modeline with tab settings is opened, it depends on the order the are found in the
Pluginsmenu of Notepad++ which plug-in does its thing first. To fix this these two plugins need to become aware of each other most likely with the message
Version 1.0.0 (23 September 2015)