Community
    • Login

    Adding more vertical edge columns than presently available.

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 226 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.
    • Michael WursterM
      Michael Wurster
      last edited by

      I am working with a ragged right txt file that has up to 592 characters per line. Is there a plugin that would allow me to define a template for column widths (variable width, no delimiter) or, alternately, use the vertical edge settings that allow more column markers than presently available. I have filled up the box with position indicators before I’ve reached the end of the line. Currently there are 47 vertical lines and I need about 60. Alternately, suggest another tool I might use.
      Thanks

      Michael VincentM Michael WursterM 2 Replies Last reply Reply Quote 0
      • Michael VincentM
        Michael Vincent @Michael Wurster
        last edited by

        @Michael-Wurster said in Adding more vertical edge columns than presently available.:

        I have filled up the box with position indicators before I’ve reached the end of the line. Currently there are 47 vertical lines and I need about 60.

        Interesting, I just checked and it seems the text box for the edge numbers does not scroll so that’s all you get. There is no other limitation though, for example, using PerlScript I can add a bunch:

        npp> editor->setEdgeMode($SC_EDGEMODE{EDGE_MULTILINE});
        
         npp> for (1..80) {
         More? editor->multiEdgeAddLine($_, 65530);
         More? }
        

        2c4d4dfe-dd61-47bd-814d-f6827ee57f17-image.png

        If yellow is obnoxious, just use a different number (65530) for the color.

        You can do the same with the PythonScript plugin:

        >>>editor.setEdgeMode(3)
        >>> for i in range(1,80):
        ...   editor.multiEdgeAddLine(i, (255,255,0))
        

        Or with NppExec:

        SCI_SENDMSG SCI_SETEDGEMODE EDGE_MULTILINE
        
        SET LOCAL COL = 1
        :LOOP
        SCI_SENDMSG SCI_MULTIEDGEADDLINE $(COL) 65530
        SET LOCAL COL ~ $(COL) + 1
        IF $(COL)<80 GOTO LOOP
        

        Cheers.

        1 Reply Last reply Reply Quote 4
        • Michael WursterM
          Michael Wurster @Michael Wurster
          last edited by

          @Michael-Wurster Thank you for the quick reply. I’m not a developer so the solutions you provided will not be a quick fix for me but I’m not afraid to wade in “dark” waters so I’ll add one of the suggested plugins to the tool box and see what happens. Ideally, I’ll be able to figure out how to add text for column headers as well and from that point on I can have a “template” to call up when I need to edit/create one of these files for test purposes.
          Thanks again.

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