SPUG: perltidy HTML colorer

Don Schneider dons at amazon.com
Wed Dec 26 19:51:20 CST 2001

For me, even with these, the emacs colorizer still gets confused by commas 
in a qq statement which uses balanced parentheses, braces, brackets, etc:

   print qq[      get rid of this, it confuses the colorizer.\n];

Using non-balanced delimiters is better, although everything after the 
comma isn't colorized as a string:

   print qq|      the next sentence is less true:\n|;
   print qq|      get rid of this, it confuses the colorizer.\n|;

Escaping the comma makes the colorizer happy:

   print qq[      the next sentence is false:\n];
   print qq[      get rid of this\, it confuses the colorizer.\n];

Any suggestions?

At 02:45 PM 12/26/2001 -0800, Matt Tucker wrote:

>I've found that most of the time when cperl-mode is getting confused,
>it's not set up properly. It's can help tremendously to have:
>     (setq cperl-use-syntax-table-text-property t)
>     (setq cperl-syntaxify-by-font-lock t)
>     (setq cperl-use-syntax-table-text-property-for-tags t)
>     (setq cperl-font-lock t)
>Some of this stuff didn't used to be possible in XEmacs, but is now in
>21.4 and up due to the porting of syntax-table text properties (extents
>in XEmacs) from GNU Emacs.

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://zipcon.net/spug/

More information about the spug-list mailing list