Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Perl5.10 and BBEdit: Syntax Coloring and Syntax Checking, How?

by cbedgar (Novice)
on Oct 23, 2008 at 16:34 UTC ( #719081=perlquestion: print w/replies, xml ) Need Help??

cbedgar has asked for the wisdom of the Perl Monks concerning the following question:

A magnificant feature of BBEdit is syntax coloring and syntax checking of various languages. BBEdit makes perl programming easier, because keywords are highlighted and comments are indicated with color. The programmer immediately catches mistakes quickly, because unclosed quotes and regular expressions are obvious.

I want to use Perl version 5.10.0. It has a number of seemingly small but very useful improvements, such as defined or, say, switch, static variables, and regex optimizations. Once you have used it for a while, the old Perl5.8 way seems so clunky.

But, here's the rub. BBEdit does not seem to handle the new Perl5.10 syntax. So, do I give up syntax coloring and checking in BBEdit, or do I give up Perl5.10? What a choice! :-( I don't want to give up either.

  • Does anybody else use BBEdit?
  • Are there dictionaries that for BBEdit that support Perl5.10?
  • Am I missing something basic? Could it be supported by I am using it wrong?
  • Any advice?
  • Comment on Perl5.10 and BBEdit: Syntax Coloring and Syntax Checking, How?

Replies are listed 'Best First'.
Re: Perl5.10 and BBEdit: Syntax Coloring and Syntax Checking, How?
by mjg (Scribe) on Nov 09, 2009 at 03:40 UTC

    ikegami is on the right track above. Open up the BBEdit application bundle (right-click the icon in Finder and select "Show Package Contents") then navigate to Contents/Resources. You'll find a file called "Perl Keywords.txt" there. Make a backup of it if you like, then open it up and add keywords you'd like highlighted. I added the following for Perl 5.10.1:

    say UNITCHECK state given when default

    Not sure where operators like // are, but this should help.

Re: Perl5.10 and BBEdit: Syntax Coloring and Syntax Checking, How?
by parv (Vicar) on Oct 24, 2008 at 07:58 UTC

    Never mind my post below for OP had already addressed the points that I wrote.

Re: Perl5.10 and BBEdit: Syntax Coloring and Syntax Checking, How?
by ikegami (Patriarch) on Oct 24, 2008 at 08:40 UTC

    I'm assuming you've already checked for updates.

    Supporting the new keywords might be as simple as adding a few words to some text file. Did you check your BBEdit directory for a keyword dictionary? Such is the case for UltraEdit. (Make a backup before doing any changes, of course!)

Re: Perl5.10 and BBEdit: Syntax Coloring and Syntax Checking, How?
by Anonymous Monk on Oct 24, 2008 at 07:48 UTC
    Any advice?
    Be direct :) contact BBEdit support.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://719081]
Approved by moritz
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2023-03-20 12:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (59 votes). Check out past polls.

    Notices?