Re: [gedit-list] LaTeX syntax highlighting
- From: Paolo Borelli <pborelli katamail com>
- To: holg3r <holger keibel net>
- Cc: gedit-list gnome org
- Subject: Re: [gedit-list] LaTeX syntax highlighting
- Date: Sat, 23 May 2009 23:55:39 +0200
Il giorno ven, 22/05/2009 alle 05.55 -0700, holg3r ha scritto:
> Hi there,
>
> I tried to extend the existing color scheme "Oblivion" to use
> different colors only for LaTeX documents. However, overriding the
> default settings seems to work only for some syntax elements while it
> fails for others. For example, for comments in LaTeX files, the
> following style specification
> <style name="latex:comment" foreground="#bc9458" italic="true"/>
> successfully overrides the corresponding default specification
> <color name="aluminium4" value="#888a85"/>
> <style name="def:comment" foreground="aluminium4"/>
> but the following specifications
> <style name="latex:statement" foreground="#cc7830" bold="true"/>
> <style name="latex:keyword" foreground="#cc7830" bold="true"/>
> fail to override the corresponding default specifications
> <style name="def:statement" foreground="#white" bold="true"/>
> <style name="def:keyword" foreground="#white" bold="true"/>
> Even when I delete/comment these default specifications, the
> LaTeX-specific specifications have no effect. Any ideas?
>
> I am using gedit 2.26.1
>
You need to look at latex.lang to see which styles you need to specify.
For instance there is:
<style id="command" _name="Command" map-to="def:keyword"/>
which means that there is a latex:command style and that if that one is
not specified it will default to the style of def:keyboard.
So to override it you need to define latex:command, not latex:keyword.
Ciao
Paolo
> Thanx
> Holger
>
> ______________________________________________________________________
> View this message in context: LaTeX syntax highlighting
> Sent from the Gnome - Gedit mailing list archive at Nabble.com.
> _______________________________________________
> gedit-list mailing list
> gedit-list gnome org
> http://mail.gnome.org/mailman/listinfo/gedit-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]