How can I associate a new file type to always be treated like it's a certain language.
Example: I am programming in a custom build of C. The file types for this are .mc. But, for all purposes, the language is C. So I want it so that when I open up the .mc file, it will automatically associate it as in the programming language C (so that I don't have to go and select C under the language menu for each file...there's alot of them).
Thanks!
-James
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Open langs.xml in Notepad++ installation directory. (eg: C:\Program Files\Notepad++)
In the document search for <Language name="c"
Add mc to ext attribute eg: <Language name="c" ext="c mc"
Save the file.
Next time a .mc file will be opened as c file.
How can I associate a new file type to always be treated like it's a certain language.
Example: I am programming in a custom build of C. The file types for this are .mc. But, for all purposes, the language is C. So I want it so that when I open up the .mc file, it will automatically associate it as in the programming language C (so that I don't have to go and select C under the language menu for each file...there's alot of them).
Thanks!
-James
*bump*
Open langs.xml in Notepad++ installation directory. (eg: C:\Program Files\Notepad++)
In the document search for <Language name="c"
Add mc to ext attribute eg: <Language name="c" ext="c mc"
Save the file.
Next time a .mc file will be opened as c file.
<Language name="c" ext="c mc" commentLine="//" commentStart="/*" commentEnd="*/">
Thanks/Sai
Or just use the Styler Configurator.
Don
Why so complicated? Just go to
Settings > Style Configurator > Language > Perl
and add your extension under
User ext:
That's it!
Thank you so much! :)
-James