EmEditor (text editor) Forum Index Questions and Answers about EmEditor Core
When the "Comment" character is part of the syntax | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| mguttman | Posted on: 1/4/2013 1:25 am |
Just can't stay away ![]() ![]() Joined: 11/14/2009 From: Ashdod, Israel Posts: 76 |
When the "Comment" character is part of the syntax Dear Yutaka,
In Perl at least, sometimes the comment character '#' is a part of the syntax. EE does ignore its commenting-out nature when it is part of a string. However, at least in the following example it does color the rest of the line as comment: my @list = ('string 1', 2, 4, 'string 2'); for my $i (0 .. $#list) { ... } everything beyond the '#' is colored 'comment'. Did I missed a feature again...?
|
| Yutaka | Posted on: 1/4/2013 4:53 pm |
Webmaster ![]() ![]() Joined: 9/28/2006 From: Redmond Posts: 2398 |
Re: When the "Comment" character is part of the syntax Hello,
This is because '#' is defined as a Line Comment on the Highlight (2) tab of Perl configuration properties. You can remove the '#' from the Line Comment text box. This is the only way to solve the issue. Thanks!
|
| QiaoJiao | Posted on: 1/5/2013 4:23 am |
Not too shy to talk ![]() ![]() Joined: 10/25/2007 From: Posts: 31 |
Re: When the "Comment" character is part of the syntax Perl is too messy, use Python.
This will solve a problem. |
| mguttman | Posted on: 1/5/2013 8:04 am |
Just can't stay away ![]() ![]() Joined: 11/14/2009 From: Ashdod, Israel Posts: 76 |
Re: When the "Comment" character is part of the syntax To whoever can understand this ancient language, written in ASCII graphems:
Mit eitzes binech bazorgt shoin!
|
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |






