Community
    • Login

    Suggestion: Please consider adding a secondary Vertical Edge

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 5 Posters 3.9k 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.
    • jcrmatosJ Offline
      jcrmatos
      last edited by

      Hello,

      Please consider adding a secondary Vertical Edge.

      In case of Python (have no idea in other languages) PEP8 recommends a maximum line length of 72 for comments and docstrings and a maximum line length of 79 for code.

      It would be helpful if we could have both visible.

      Thanks for a great editor.

      Best regards,

      JM

      1 Reply Last reply Reply Quote 1
      • gstaviG Offline
        gstavi
        last edited by

        I would like that too.
        Quick googling shows that it is already requested here

        1 Reply Last reply Reply Quote 0
        • guy038G Offline
          guy038
          last edited by

          Hello @jcrmatos,

          Reading your post, made me remember about a solution which highlight, either, the foreground or the background, of files, with a specific extension, based on regular expressions.

          I thought about highlighting the columns from position 73 to position 79. By that means, it would be been easy to see if text currently written, is before position 72, after position 79 or between these two locations !

          This solution can be achieved by a modified python script, initially created by @claudia-frank, at the address, below :

          https://notepad-plus-plus.org/community/topic/13183/poorman-regex-based-styler-lexer/14

          which highlights, in a pale blue colour, the gap between columns 73 and 79, in .log files

          But, unfortunately, as explained by claudia, it just cannot be used to highlight … Python scripts ! Too bad !


          As a work-around, you could, simply, mark, from time to time, in your current python file, all the written zones between columns 73 and 79 :

          • Select the menu option Search > Mark…

          • In the Find what: zone, type (?-s)^.{72}\K.{1,7}

          • Click on the Wrap around option

          • Choose the Regular expression search mode

          • Click on the Mark All button

          => You should easily notice the lines which are longer than the positions 72 or 79 :-))

          Cheers,

          guy038

          1 Reply Last reply Reply Quote 0
          • Claudia FrankC Offline
            Claudia Frank
            last edited by

            Just for info,

            if notepad++ updates to a scintilla version >= 3.7 then it is supported natively.

            Release 3.7.0

            …
            EDGE_MULTILINE and SCI_MULTIEDGEADDLINE added to allow displaying multiple vertical edges simultaneously.
            …

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 1
            • Google SubmitG Offline
              Google Submit
              last edited by

              Hello friend thankyou so much to make me already join but i really so happy can join this

              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