Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 1.6k Views 2 Watching
    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 Offline
      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 Online
        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 Offline
          nutnutwin @PeterJones
          last edited by

          @peterjones

          Thank you so much! it worked

          1 Reply Last reply Reply Quote 0

          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
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors