Viewing 2 posts - 1 through 2 (of 2 total)
- AuthorPosts
- February 20, 2008 at 4:19 pm #5486shaohaoMember
@data = (1,2);
for ( my $i = 0; $i < $#data; ++$i) {
....
As we know, the “$#” mean the last element of a list in Perl.
But EE’s Syntax highlight will be error to display the “$#data” — “#data” will be treated as a comment.February 20, 2008 at 11:07 pm #5488Yutaka EmuraKeymastershaohao wrote:
@data = (1,2);
for ( my $i = 0; $i < $#data; ++$i) {
....
As we know, the “$#” mean the last element of a list in Perl.
But EE’s Syntax highlight will be error to display the “$#data” — “#data” will be treated as a comment.EmEditor’s syntax highlighting is designed to be generic, so this inconvenience can happen. You might want to remove # from the comment string in the Highlight (2) tab of configuration properties.
- AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.