Community
    • Login

    Code alignment doesn't work properly

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 774 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.
    • E
      Eli Grey
      last edited by

      With notepad++, I want to align column with several characters such as :, =. I found some plugin named ‘code alignment’ but this ‘Align by’ command does not align the text properly.

      First image is an example code and second is an image after the ‘Align by’ command. I even tested for check boxes (Align from caret position, Use reguler expression) with all possible combinations, but return same as second image. what shoud I do with this ‘code alignment’ plugin? I’d also appreciate it if you give some other plugin options.

      bf.png

      af.png

      My notepad++ version is v8.4.7. (64bit) in Windows
      Plus, I also want to know the following sentence’s meaning what I found in stackoverflow : https://stackoverflow.com/questions/47012492/how-to-align-text-to-the-right-with-notepad

      Find what: ^(.+?)(\h+)
      Replace with: \2\1

      I tried find-and-replace with these hard to understand symbols but doesn’t do anything for me, so I wonder what I’m missing about this answer of the post of the link above.

      Michael VincentM 1 Reply Last reply Reply Quote 0
      • Michael VincentM
        Michael Vincent @Eli Grey
        last edited by

        @Eli-Grey you need to use a fixed with font.

        Cheers.

        E 1 Reply Last reply Reply Quote 1
        • E
          Eli Grey @Michael Vincent
          last edited by

          @Michael-Vincent It is so shocking I lost my words. Thanks a lot for your help it’s all I needed.

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