Any tricks to set the non-default value of "Strip trailing whitespace" for an individual file?

2018-10-20 Thread F. Alfredo Rego
Hello everyone, BBEdit Preferences for Text Files lets us set a default choice for “Strip trailing whitespace” as a GLOBAL setting. I have this checked (to YES), because I like this choice for my source files. However, for clippings (and other “stencils”), it’s convenient to have a trailing bl

Re: Any tricks to set the non-default value of "Strip trailing whitespace" for an individual file?

2018-10-22 Thread Oliver Boermans
BBEdit has support for https://editorconfig.org/ which allows this and other settings to be customised per directory or based on file name. Has been a while since I read the appropriate portion of the BBEdit User Manual (Find it in the help menu, recommended!), but it may be necessary to be working

Re: Any tricks to set the non-default value of "Strip trailing whitespace" for an individual file?

2018-10-22 Thread F. Alfredo Rego
Great hint, Ollie. This seems to be the ticket. I’ll dive into EditorConfig. I should have done this years ago, but . . . Thanks for the motivation. Alfredo > On Oct 22, 2018, at 4:33 AM, Oliver Boermans wrote: > > BBEdit has support for https://editorconfig.org/

Re: Any tricks to set the non-default value of "Strip trailing whitespace" for an individual file?

2018-10-22 Thread F. Alfredo Rego
Ollie,I placed the attached file here, where my specific clipping of interest is:~/Library/Application Support/BBEdit/Clippings/C Source.cp/.editorconfigBBEdit still kindly strips trailing blanks when saving the clipping.Any ideas where the breakdown in communication may be happening along the chan

Re: Any tricks to set the non-default value of "Strip trailing whitespace" for an individual file?

2018-10-22 Thread Jim Danner
Shouldn't you have a line that contains [*] before the trim_trailing_whitespace line? It seems so from the example on the Editorconfig homepage. On Monday, October 22, 2018 at 3:33:04 PM UTC+2, Alfredo wrote: > > Ollie, > > I placed the attached file here, where my specific clipping of interest

Re: Any tricks to set the non-default value of "Strip trailing whitespace" for an individual file?

2018-10-22 Thread F. Alfredo Rego
BINGO! That [*] did it. Of course. Obvious in retrospect. Thanks, Jim. Alfredo > On Oct 22, 2018, at 8:57 AM, Jim Danner wrote: > > Shouldn't you have a line that contains > [*] > > before the trim_trailing_whitespace line? It seems so from the example on the > Editorconfig homepage. > >