- Subject: Re: special syntax highlighting
- From: Swithun Crowe <swithun@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 20 Jul 2009 12:29:46 +0100 (BST)
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]