From: Thomas B. <br...@ph...> - 2007-07-05 20:44:59
|
[resending because of stupid sf blocking zip attachments] On Thursday 05 July 2007 19:07, Jan Nikolas Dicke wrote: > Hello, Hello Jan, > I'm using Kile 1.9.3 and would like to add syntax hightlighting to the > LaTeX footnote command. What I really want is that the text between the > braces of the footnote command is displayed in a special colour. > > I read the thread "Changes in Syntax Highlighting", posted by Sven Bretfeld > et. al. two years ago > (http://sourceforge.net/mailarchive/message.php?msg_id=200511041137.33167.s >ven.bretfeld%40theol.unibe.ch). I modified my latex.xml config file and it > works, but not perfectly. As Holger Danielsson told in due time, the syntax > in only hightlighted until the first closing brace. To me, this is a real > problem for I'm using a lot of other LaTeX commands within the footnotes. > So syntax hightlighting mostly ends before the end of my footnotes. > > Holger suggested to modify the latex.xml file in a way to parse the > footnote text recursively, but I don't know how to manage this (I'm just an > historian working on my phd thesis...) You could try the attached latex.xml file. I just copied the sectioning recursive parsing and do the same for \footnote. Thomas |