Community
    • Login

    Custom Styling

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 2 Posters 471 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.
    • HeehonkH
      Heehonk
      last edited by

      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
      • Alan KilbornA
        Alan Kilborn
        last edited by

        @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

        HeehonkH Alan KilbornA 2 Replies Last reply Reply Quote 0
        • HeehonkH
          Heehonk @Alan Kilborn
          last edited by

          @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
          • Alan KilbornA
            Alan Kilborn @Alan Kilborn
            last edited by Alan Kilborn

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

            HeehonkH 1 Reply Last reply Reply Quote 3
            • HeehonkH
              Heehonk @Alan Kilborn
              last edited by

              @alan-kilborn Perfect! Thanks so much.

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