• Login
Community
  • Login

Custom Styling

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
5 Posts 2 Posters 530 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.
  • H
    Heehonk
    last edited by Jun 24, 2022, 4:39 PM

    Hey, folks. My name is Youssef. I’m new to using Notepad+
    How’s it going? I’m writing here to ask you for advice on how to automate a process. I want Notepad++ to count character lengths per line for me, and notify me when they’re over a certain number. Thanks a bunch! And take care!

    1 Reply Last reply Reply Quote 0
    • A
      Alan Kilborn
      last edited by Jun 24, 2022, 5:04 PM

      @heehonk

      You could do a Find All to find lines greater than or equal to a certain length, e.g. 100:

      Find: (?-s)^.{100]
      Search mode: Regular expression

      H A 2 Replies Last reply Jun 24, 2022, 5:08 PM Reply Quote 0
      • H
        Heehonk @Alan Kilborn
        last edited by Jun 24, 2022, 5:08 PM

        @alan-kilborn Hey, Alan! Thanks for responding! Am I doing this right?

        3b36c538-4ffc-4e8c-b792-b2034b09f01a-image.png

        Also, where can I learn more about customizing Notepad++? Thanks!

        1 Reply Last reply Reply Quote 1
        • A
          Alan Kilborn @Alan Kilborn
          last edited by Alan Kilborn Jun 24, 2022, 5:14 PM Jun 24, 2022, 5:12 PM

          @alan-kilborn said in Custom Styling:

          Find: (?-s)^.{100]

          What the heck did I type??

          I meant (?-s)^.{100,}

          Actually, in a Find All or a Mark All, this will work as well:

          (?-s)^.{100}

          Note, no comma. Which was what I originally meant, although I lost the Shift key at the end and got ] instead of }.

          Also, where can I learn more about customizing Notepad++?

          I suppose the user manual?
          https://npp-user-manual.org/
          Or by reading postings here on this current site.

          H 1 Reply Last reply Jun 24, 2022, 5:28 PM Reply Quote 3
          • H
            Heehonk @Alan Kilborn
            last edited by Jun 24, 2022, 5:28 PM

            @alan-kilborn Perfect! Thanks so much.

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