Notepad++ "Compress whitespace" effect

Posted by tylerl on Super User See other posts from Super User or by tylerl
Published on 2011-02-14T09:04:39Z Indexed on 2011/02/14 23:27 UTC
Read the original article Hit count: 264

Filed under:

I'm looking for a mechanism within notepad++ to replace runs of consecutive whitespace with a single space, like the "Compress whitespace" command in notepad2.

Essentially, in regex form:

s/\s+/ /g

I know I can do it with the find-replace form, but I would prefer soemthing that I can bind to a keyboard sequence.

EDIT

Find and replace cannot be recorded as a macro in some versions of Notepad++. Update to the latest if you have trouble.

© Super User or respective owner

Related posts about notepad++