jed-users mailing list

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

How can I add new highlighting-rules?


Hi,

I have extended the standard latex-mode of jed 0.99.15 by a file,
which I have called mylatex.sl and which resides in a directory in my
homedir. It loads latex.sl and adds some functions and keybindings.
Now I also want to add some rules for highlighting, but how can I do
this?

What I want is especially, to get the text within curled braces to be
highlighted. Like the text in \section{Highlight me!}. If possible, it
would be nice, if it would work across lines, like \footnote{This text
should be highlighted on the second line too!}.

I thought, that this should be possible by a regular expression, which
defines a highlighting rule for one of the keywords. So, I have tried
to add an entry to setup_dfa_callback() in texcom.sl, which didn't
work. But I would prefer anyway, not to touch the original files in
/usr/share/jed/lib/ but put it in my mylatex.sl instead. But I don't
know, how to do this :-(

If anyone could help me, I would be very thankful!

Martin

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


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