首先到以下网站下载配色文件,然后将xml文件复制到/usr/share/gtksourceview-2.0/styles文件夹即可,打开gedit即可选择已经下载到配色方案
http://live.gnome.org/GtkSourceView/StyleSchemes
GtkSourceView / gedit Themes
Please do not use the GUI editor to edit this page. It changes the layout of the page.
This page contains third party styles for GtkSourceView based editors. Note that themes for GtkSourceView 2 are compatible with GtkSourceView 3.
How to install
To install a style just place its XML file into a folder of the style search path.
GtkSourceView 2
A typical search path for GtkSourceView version 2 looks like:
~/.local/share/gtksourceview-2.0/styles/
/usr/share/gnome/gtksourceview-2.0/styles/
/usr/local/share/gtksourceview-2.0/styles/
/usr/share/gtksourceview-2.0/styles/
If this does not work in your distribution you can find out your style search path with this python script. To run it you need the python bindings for GtkSourceView 2. In Debian-based distributions this is package python-gtksourceview2.
GtkSourceView 3
A typical search path for GtkSourceView version 3 looks like:
~/.local/share/gtksourceview-3.0/styles/
/usr/share/gnome/gtksourceview-3.0/styles/
/usr/local/share/gtksourceview-3.0/styles/
/usr/share/gtksourceview-3.0/styles/
http://live.gnome.org/GtkSourceView/StyleSchemes
GtkSourceView / gedit Themes
Please do not use the GUI editor to edit this page. It changes the layout of the page.
This page contains third party styles for GtkSourceView based editors. Note that themes for GtkSourceView 2 are compatible with GtkSourceView 3.
How to install
To install a style just place its XML file into a folder of the style search path.
GtkSourceView 2
A typical search path for GtkSourceView version 2 looks like:
~/.local/share/gtksourceview-2.0/styles/
/usr/share/gnome/gtksourceview-2.0/styles/
/usr/local/share/gtksourceview-2.0/styles/
/usr/share/gtksourceview-2.0/styles/
If this does not work in your distribution you can find out your style search path with this python script. To run it you need the python bindings for GtkSourceView 2. In Debian-based distributions this is package python-gtksourceview2.
GtkSourceView 3
A typical search path for GtkSourceView version 3 looks like:
~/.local/share/gtksourceview-3.0/styles/
/usr/share/gnome/gtksourceview-3.0/styles/
/usr/local/share/gtksourceview-3.0/styles/
/usr/share/gtksourceview-3.0/styles/