Re: Sequential numbering

2012-10-23 Thread Stuart Gilson
How do you refer this perl script to a file or files? On Monday, 3 September 2012 07:42:36 UTC+1, AB wrote: Can anyone help with a script or text filter to add a number after a string in a file, starting at 1 at the first occurrence from the top of the file and incrementing by one at each

Re: Sequential numbering

2012-10-23 Thread John Delacour
On 23/10/2012 10:43, Stuart Gilson wrote: How do you refer this perl script to a file or files? The script takes the whole text of the front document as STDIN (input) unless you have made a selection, in which case it takes the selection. « while () { ... » means, in effect, while reading

Re: Sequential numbering

2012-10-23 Thread Bruce Van Allen
On 10/23/12 at 10:28 AM, johndelac...@gmail.com (John Delacour) wrote: On 23/10/2012 10:43, Stuart Gilson wrote: How do you refer this perl script to a file or files? The script takes the whole text of the front document as STDIN (input) unless you have made a selection, in which case it

Re: Sequential numbering

2012-10-23 Thread John Delacour
On 23/10/2012 19:47, Bruce Van Allen wrote: The other part of the answer is that you save the script with a memorable name in a text file and put the file in ~/Library/Application Support/BBEdit/Scripts. It will then show up in BBEdit's Scripts menu (the one that looks like a scrolling sheet

Warn when file type is NOT unix (or Mac)?

2012-10-23 Thread Drew Schatt
Is there any way to configure BBEdit to warn when the file type is NOT the default? I typically use Unix (LF) as my file type, and I'd find it helpful if BBEdit would warn me when I'm saving a file that has Windows linebreaks instead. Is there some option that I'm missing? -Drew -- -- You

Re: Warn when file type is NOT unix (or Mac)?

2012-10-23 Thread Christopher Stone
On Oct 23, 2012, at 18:16, Drew Schatt dsch...@fonality.com wrote: Is there any way to configure BBEdit to warn when the file type is NOT the default? __ Hey Drew, I don't believe there's a built-in method, but BBEdit is

Re: Warn when file type is NOT unix (or Mac)?

2012-10-23 Thread Rich Siegel
On Tuesday, October 23, 2012, Christopher Stone listmeis...@suddenlink.net wrote: I don't believe there's a built-in method, but BBEdit is attachable - so it should be possible to script this. Look in the manual under Attaching Scripts to Menu Items. In this case I would actually recommend

[ANN] BBEdit 10.5 (3221) pre-release

2012-10-23 Thread Rich Siegel
Good { morning, afternoon, evening }, The 10.5 public beta's rolling right along -- thanks to everyone who's taken the time to try it out and let us know how it's working, for better or for worse. :-) A new build is available, with an assortment of fixes for things that turned up in the