- Subject: Re: [jed-users] Re: Perl multiline string highlighting?
- From: jed@xxxxxxxxxxx (John E. Davis)
- Date: Mon, 13 Mar 2017 22:42:00 -0400
Ulli Horlacher <framstag@xxxxxxxxxxxxxxxxxxxx> wrote:
> I would like to see `command` highlighted like strings. How can it be done?
You can modify perl.sl to declare "`" as a string delimiter. In the
part of the file that contains define_syntax statements, add:
define_syntax('`', '"', $1); % string
Also, if you want multiline strings to be highlighted, change:
set_syntax_flags ($1, 0x10|0x80);
to
set_syntax_flags ($1, 0x10);
However, you may find that these changes cause undesirable
side-effects since perl also uses these delimiters for non-string
purposes. For example, $' and $` are perl variables. See perl.sl for
work-arounds.
Good luck,
--John
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.
[2017 date index]
[2017 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]