• Login
Community
  • Login

Space Before and After a Equals (=) character?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 639 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.
  • A
    AlanRobbo 69
    last edited by Mar 9, 2020, 12:06 PM

    ‘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
    • P
      PeterJones
      last edited by Mar 9, 2020, 1:44 PM

      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
      1 out of 2
      • First post
        1/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors