Jens,

That particular script is part of a separate package actually, but  
it's easy to set up.

Go To The Script menu, and choose Edit User Scripts.
Click on the "Plus" and add a "New Shell Script"
Set the script to:

#! /bin/sh
/usr/bin/sed -E 's/[[:space:]]+$//'

Set the Input to "Entire Document"
Directory "Home Directory"
Output "Replace Document Contents"
Errors: "Display in Alert"

I have mine set to be "^S" as the hot key.

Now you just have to remember to do it.

Cheers,
Dave

On Nov 30, 2009, at 6:34 PM, Avi Drissman wrote:

> On Mon, Nov 30, 2009 at 7:19 PM, Jens Alfke <s...@google.com> wrote:
> second best would be a menu command
> to explicitly zap whitespace in the file being edited.
>
> That's there. Select all, and then from the scripts menu > Google  
> there's a "fix whitespace" command.
>
> Avi

-- 
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev

Reply via email to