Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 826 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.
    • nutnutwinN
      nutnutwin
      last edited by

      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! )

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @nutnutwin
        last edited by PeterJones

        @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)

        nutnutwinN 1 Reply Last reply Reply Quote 3
        • nutnutwinN
          nutnutwin @PeterJones
          last edited by

          @peterjones

          Thank you so much! it worked

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