• Login
Community
  • Login

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

Scheduled Pinned Locked Moved General Discussion
4 Posts 3 Posters 421 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.
  • V
    Volkan Kaban
    last edited by Volkan Kaban Jan 14, 2023, 8:51 PM Jan 14, 2023, 7:18 PM

    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

    L 1 Reply Last reply Jan 14, 2023, 10:26 PM Reply Quote 0
    • L
      Lycan Thrope @Volkan Kaban
      last edited by Jan 14, 2023, 10:26 PM

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

      E 1 Reply Last reply Jan 15, 2023, 11:00 AM Reply Quote 0
      • E
        Ekopalypse @Lycan Thrope
        last edited by Jan 15, 2023, 11:00 AM

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

        L 1 Reply Last reply Jan 16, 2023, 1:21 AM Reply Quote 3
        • L
          Lycan Thrope @Ekopalypse
          last edited by Jan 16, 2023, 1:21 AM

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