Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What text editor does most accurate job of syntax highlighting Perl

I know I risk asking a speculative question, however, inspired by this recent question I wonder which editor does the best job of syntax highlighting Perl. Being well aware of the difficulties (impossibilities) of parsing Perl I know there will not be a perfect case. Still I wonder if there is a clear leader in faithful representation.

N.B. I use gedit and it works fine, but with known issues.

like image 749
Joel Berger Avatar asked Jan 08 '11 01:01

Joel Berger


2 Answers

Komodo Edit does a good job and also scans your modules (including those installed via CPAN) and does well at generating autocomplete data for them.

like image 104
Quentin Avatar answered Nov 04 '22 11:11

Quentin


I'm a loyal vim user and rarely encounter anything odd with the native syntax.vim, except for these cases (I'll edit in more if/when I find them; others please feel free also):

  • !!expression is better written !!!!expression (everything after two ! is rendered as a comment quoted string; four ! brings everything back to normal)
  • m## or s### renders everything after the # as a comment; I usually use {} as a delimiter when avoiding / for leaning toothpick syndrome
  • some edge cases for $hash{key} where key is not a simple alphanumeric string - although it's safer to enclose such key names in '' anyway so as to not have to look up the exact cases for when a bareword is treated as a key name
like image 31
Ether Avatar answered Nov 04 '22 13:11

Ether