I want to open iOS objective-c files in Notepad++ (with a .m extension) and have it designated as an Objective-C file. In settings –> style configurator, I know that I can add a “user ext.” (m) for Objective-C. The problem is that Matlab already uses the .m extension as the default extension field, which can’t be edited. Is there a file I can access to change this?
Share
Notepad++ doesn’t list
.h,.mand.mmfiles as Objective-C files (.mmis Objective-C++) by default for some reason.You can modify your
langs.xmlfile to tell Notepad++ to associate those extensions with Objective-C. Open the file%AppData%\Notepad++\langs.xml, and scroll down to the following area:Then add
h m mmto theextattribute:Then restart Notepad++.
If editing the
langs.xmlfile in your%AppData%\Notepad++folder doesn’t work, you’ll have to open the one in%ProgramFiles%\Notepad++instead. Make sure to back up the original in case you mess up somewhere.