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: 80 |
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: 2424 |
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: 80 |
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!
|
| mguttman | Posted on: 6/19/2013 5:32 am |
Just can't stay away ![]() ![]() Joined: 11/14/2009 From: Ashdod, Israel Posts: 80 |
Re: When the "Comment" character is part of the syntax In fact, what I forgot to mention is that the problem is not the coloring. I can live with that!
A more serious problem is that the matching parenthesis pairing is messed up. This IS a problem! Removing the '#' from the Line Comment text field in the Highlight(2) tab of Perl configuration properties will create a lot more problems than "solved". Can that be fixed???
|
| Yutaka | Posted on: 6/19/2013 9:12 am |
Webmaster ![]() ![]() Joined: 9/28/2006 From: Redmond Posts: 2424 |
Re: When the "Comment" character is part of the syntax Hello,
I see. I will have to consider improvements about line comments in future versions. For example, using regular expressions to specify line comments. Thanks!
|
| mguttman | Posted on: 6/19/2013 11:40 am |
Just can't stay away ![]() ![]() Joined: 11/14/2009 From: Ashdod, Israel Posts: 80 |
Re: When the "Comment" character is part of the syntax Yes, that would be great if you could find a way...
In fact, may be any coloring or other stuff could be specified by a regex.
|
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |






