jed-users mailing list

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

Re: special syntax highlighting


On Mon 2009-07-20 (23:40), John E. Davis wrote:

> Another hack:
> 
>   define_syntax("\xBB\xAB", '<', $1);

GREAT! 

I have now highlighted text (though command red instead of string blue)
and goto_match still works!

I have invested several hours before in making this work. It seems easy,
but it was frustrating! 


The documentation of define_syntax says:

  If `type' is `<', the first parameter is a string whose successive
  characters form begin and end keyword highlight directives.

But what kind of syntax element does '<' define?

Is it "keyword"?

When I do a:
set_color("keyword","blue","default");
then my text is in blue, but all Perl commands, too.


-- 
Ullrich Horlacher              Server- und Arbeitsplatzsysteme
Rechenzentrum                  E-Mail: horlacher@xxxxxxxxxxxxxxxxxxxx
Universitaet Stuttgart         Tel:    ++49-711-685-65868
Allmandring 30                 Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.rus.uni-stuttgart.de/

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


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