How do I always open txt with certain Syntax(eg. Markdown
-
Hi, new here.
How do I link certain extension to some syntax highlighting?
eg. I would show txt always with Markdown syntaxIn other editor like sublime text, I can
View -> Syntax -> Open all with current extension as… ->[your syntax choice].
(similar can be done in VSCodeWonder if it is possible to do this in NTPP? Really love this editor(so fast! )
-
For a User Defined Language like Markdown, go to Language > User Defined Language > Define Your Language… , The select Markdown (preinstalled) from the pulldown, then add
txt
in the extension box (no dot; if there are other extensions you want to keep, space separate the extensions).For a builtin language like Perl, go to Settings > Style Configurator, select the langauge, then in the User ext.: box, add the extension (again, no dot, space-separated)
-
Thank you so much! it worked