Community
    • Login

    Code alignment doesn't work properly

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 1.4k Views 1 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.
    • E Offline
      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 Offline
        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 Offline
          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

          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