Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #11222
    ldm
    Participant

    Hi All,

    What setting should I do in order to remove white spaces from end of the line each time I press on ‘Save’ button?

    Thank you!

    #11225
    JohnQSmith
    Participant

    VBScript macro

    replaced = document.selection.Replace( "s+?$", "", eeFindReplaceRegExp Or eeReplaceAll )

    Macros > Customize macros > Run at Events
    Then select the Before Saving event

    #11226
    Yutaka Emura
    Keymaster

    Hello,

    Alternatively, you can go to configuration properties, the File tab, the Saving button, and check the “Delete Spaces at End of Lines” check box.

    #11228
    JohnQSmith
    Participant

    I like that better, but while figuring out the way I did it, I discovered how amazingly EmEditor can be modified using scripting.

    #11229
    CaptainFlint
    Participant

    And not to forget about the built-in command Delete Spaces at End of Lines. :-)

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.