#5887
Yutaka Emura
Keymaster

Flint wrote:
Here is the Perl code:

print "Hello #World!n" if ($something);

The “if ($something);” part is highlighted as comment, except for highlighting of the keyword “if” and special sign “$” takes precedence here. That is, highlighted line looks like following:

print "Hello #World!n" if ($something);

If I remove the sign “#” (a line comment character in Perl) from the string, the highlighting returns to normal:

print "Hello World!n" if ($something);

EmEditor 7.00.9 Pro, WinXP SP3.

This is strange. I cannot reproduce your problem.
Can you try resettings all configurations or Perl configuration?