Community
    • Login

    Space Before and After a Equals (=) character?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 840 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.
    • AlanRobbo 69A Offline
      AlanRobbo 69
      last edited by

      ‘Language’ ‘User Defined Language’

      [DocumentVariables]
      Version=1
      [Variables]
      Chf=-0.5
      Cut1=5
      Cut2=3.5

      Hi, is there a way of adding a Space Before and After a Equals (=) character?

      [DocumentVariables]
      Version=1
      [Variables]
      Chf = -0.5
      Cut1 = 5.0
      Cut2 = 3.5
      This is how I’d like to see my File.

      1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones
        last edited by

        The user-defined-language settings will not automatically add spaces. However, you could search for \x20*=\x20* and replace with \x20=\x20 in regular expression mode. That will change any number of spaces (including zero) followed by = followed by any number of spaces (including zero) with exactly one space, exactly one equal, and exactly one space.

        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