At 11:54 +1000 23/07/2011, Charlie Garrison wrote:

On 22/07/11 at 9:49 PM +0100, John Delacour <[email protected]> wrote:

using terms from application "BBEdit"
make window with properties {source language:"perl",


Not sure it if it makes any difference, but try setting source language to "Perl" instead.

Yes, that does the trick, which suggests that this property was never set by the script under the old version but that BBE automatically set the language according to the shebang in the contents.

Under BBE 9 a UNIX filter (now 'Text Filter' I see) with the .pl extension would also run fine without any shebang, as I mentioned many months ago. Another case of BBEdit's making a sensible assumption. I was contradicted at the time, and it will be interesting to hear the reaction when I say that this is still the case under BBE 10. The filter below, without shebang and with *none* set as language

while (<>){
  s/e/*/g;
  print;
}

is fully functional provided it is saved as e2*.pl.

JD

--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to