• Login
Community
  • Login

How do I always open txt with certain Syntax(eg. Markdown

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 832 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    nutnutwin
    last edited by Mar 12, 2022, 1:07 PM

    Hi, new here.

    How do I link certain extension to some syntax highlighting?
    eg. I would show txt always with Markdown syntax

    In other editor like sublime text, I can

    View -> Syntax -> Open all with current extension as… ->[your syntax choice].
    (similar can be done in VSCode

    Wonder if it is possible to do this in NTPP? Really love this editor(so fast! )

    P 1 Reply Last reply Mar 12, 2022, 4:48 PM Reply Quote 0
    • P
      PeterJones @nutnutwin
      last edited by PeterJones Mar 12, 2022, 5:10 PM Mar 12, 2022, 4:48 PM

      @nutnutwin ,

      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)

      N 1 Reply Last reply Mar 13, 2022, 1:45 AM Reply Quote 3
      • N
        nutnutwin @PeterJones
        last edited by Mar 13, 2022, 1:45 AM

        @peterjones

        Thank you so much! it worked

        1 Reply Last reply Reply Quote 0
        2 out of 3
        • First post
          2/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors