Community
    • Login

    How do I use the custom folding global in Notepad++?

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 3 Posters 692 Views 1 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.
    • Volkan KabanV Offline
      Volkan Kaban
      last edited by Volkan Kaban

      I want to use the default JavaScript language to open all of my .js and .txt files with Notepad++, and I need to create custom folding something starts with “[]####” and ends with “####[]” to organize all of my topics and notes. I have tried using the Language and User-Defined Language options, but without success. Is there a way to create custom folding with the JavaScript language without any interference from auto-updates in Notepad++?

      I would appreciate any inputs, opinions, or advice. Thank you!

      Screenshot_20230114_131311.png

      Lycan ThropeL 1 Reply Last reply Reply Quote 0
      • Lycan ThropeL Offline
        Lycan Thrope @Volkan Kaban
        last edited by

        @Volkan-Kaban,

        I’m not sure, but I think you may need to check out the EnhanceAnyLexer plugin available in the plugin manager.
        Someone may be able to give you a direct link for information and such, I’m not sure where it is just right now.

        EkopalypseE 1 Reply Last reply Reply Quote 0
        • EkopalypseE Offline
          Ekopalypse @Lycan Thrope
          last edited by

          @Lycan-Thrope

          No, EnhanceAnyLexer can ONLY do foreground coloring.
          Folding is not supported, nor do I see a way to do it without getting into a fight between the original source (UDL and built-in lexer) and a third-party plugin. I’m afraid such a feature cannot be supported.

          Lycan ThropeL 1 Reply Last reply Reply Quote 3
          • Lycan ThropeL Offline
            Lycan Thrope @Ekopalypse
            last edited by

            @Ekopalypse ,
            Noted. I haven’t used it, so of course, I had no idea, but I keep reading the positive reviews of it, so was unsure how far it goes. Thank you for explaining that aspect.

            1 Reply Last reply Reply Quote 1

            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