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
txtin 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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login