jed-users mailing list

[2009 Date Index] [2009 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: special syntax highlighting


Hello

UH How can I tell jed to recognize » as a string delimiter?

Looking at perl.sl in the lib directory, there are these lines:

define_syntax("#", "", '%', $1);                % single line comment
define_syntax(pod_beg, pod_end, '%', $1);       % multi-line comment (POD)
define_syntax("([{", ")]}", '(', $1);           % matching brackets
define_syntax('\'', '"', $1);                   % string
define_syntax('"', '"', $1);                    % string

You could define » as a string starter, like in the last 2 lines. Or, 
maybe you could do something clever along the lines of the second example, 
for multi-line comments.

I haven't tried these, but that would be where I'd experiment first.

Swithun.

[2009 date index] [2009 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]