Community
    • Login

    Space Before and After a Equals (=) character?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 645 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.
    • AlanRobbo 69A
      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
        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors