我正在尝试调整 gedit 样式,以便用户定义的函数具有不同的颜色。
我已经搜索了http://library.gnome.org/devel/gtksourceview-2.0/stable/lang-reference.html但我找不到任何东西。
我想<style name="def:function" />
可能会这样做,但它似乎在 gedit 中没有效果。
<?xml version="1.0" ?>
<style-scheme id="wombat" name="Wombat" version="1.0">
<author/>
<_description>Wombat theme</_description>
<style background="#2d2d2d" name="current-line"/>
<style background="#857b6f" bold="true" foreground="#fff000" name="bracket-match"/>
<style background="#242424" bold="true" foreground="#fff000" name="search-match"/>
<style background="#656565" name="cursor"/>
<style background="#242424" foreground="#f6f3e8" name="text"/>
<style background="#272727" foreground="#857b6f" name="line-numbers"/>
<style foreground="#363636" italic="true" name="def:comment"/>
<style foreground="#e5786d" name="def:constant"/>
<style foreground="#95e454" italic="true" name="def:string"/>
<style foreground="#cae682" name="def:identifier"/>
<style foreground="#000000" name="def:function"/>
<style foreground="#cae682" name="def:type"/>
<style foreground="#8ac6f2" name="def:statement"/>
<style foreground="#8ac6f2" name="def:keyword"/>
<style foreground="#e5786d" name="def:preprocessor"/>
<style foreground="#e5786d" name="def:number"/>
<style foreground="#e7f6da" name="def:specials"/>
</style-scheme>
有什么提示吗?谢谢!