Trim trailing whitespaces

2008-11-17 Thread Christophe Bismuth
Dear community, I'm used to coding with Eclipse which trim trailing whitespaces on save. Is there any feature like this in BBEdit 9.0.2 ? I tried to do so with regex pattern which works well with Eclipse, but it doesn't work with BBEdit. Here it is (without quotes) : "\s+$".

Re: Trim trailing whitespaces

2008-11-17 Thread Jonathan Lundell
On Nov 17, 2008, at 1:59 PM, Christophe Bismuth wrote: > I'm used to coding with Eclipse which trim trailing whitespaces on > save. Is there any feature like this in BBEdit 9.0.2 ? > I tried to do so with regex pattern which works well with Eclipse, but > it doesn't work w

Re: Trim trailing whitespaces

2008-11-18 Thread RWCarr
something something I get auto-indenting to keep the "something"s lined up, but there are 4 spaces in the blank line. Richard On Nov 17, 1:59 pm, Christophe Bismuth <[EMAIL PROTECTED]> wrote: > Dear community, > > I'm used to coding with Eclipse which trim trailing whi

Re: Trim trailing whitespaces

2008-11-18 Thread Doug McNutt
At 09:17 -0800 11/18/08, RWCarr wrote: >I see there is a Pref for "When auto-indenting, remove leading white >space from indented line" >What does this do? I have it checked, but when I type: > >if whatever then > something > something > > something > something > >I get auto-indent

Re: Trim trailing whitespaces

2008-11-18 Thread Christophe Bismuth
Thank you guys for your support, I'll try to fill a feature request for BBEdit 9.0.3 (let's hope ;o). Jonathan your second suggest works : replace (without quote) "[ \t]+$" with blank. Thank you ;o) On 18 nov, 19:53, Doug McNutt <[EMAIL PROTECTED]> wrote: > At 09:17 -0800 11/18/08, RWCarr wrote:

Re: Trim trailing whitespaces

2008-11-19 Thread lixlpixel
I'm using an Applescript from the Clankwerks BBEdit Scripts collection < http://scriptbuilders.net/files/clankwerksbbeditscriptpackage1.0.html > to clean trailing whitespace (tabs or spaces). you can assign a keyboard shortcut to it so you don't have to go to the scripts menu to run it. you real