在我的机器上,gedit 似乎将其新添加的主题保留在:
~/.gnome2/gedit/styles/
Run Code Online (Sandbox Code Playgroud)
尽管我相信在某些安装中它位于:
$HOME/.local/share/gedit/styles/
Run Code Online (Sandbox Code Playgroud)
原始主题(在我的机器上)位于:
/usr/share/gtksourceview-2.0/styles/
Run Code Online (Sandbox Code Playgroud)
从文档中:https : //wiki.gnome.org/Projects/GtkSourceView/StyleSchemes
要安装样式,只需将其 XML 文件放入样式搜索路径的文件夹中。
GtkSourceView 2
GtkSourceView 版本 2 的典型搜索路径如下所示:
~/.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/如果这在您的发行版中不起作用,您可以使用此 python 脚本找到您的样式搜索路径。要运行它,您需要 GtkSourceView 2 的 python 绑定。在基于 Debian 的发行版中,这是包 python-gtksourceview2。
GtkSourceView 3
GtkSourceView 版本 3 的典型搜索路径类似于
~/.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/
小智 3
您可以在这里找到免费主题:https ://wiki.gnome.org/Projects/GtkSourceView/StyleSchemes
找到您的主题并单击下载。
将出现一个 xml 代码。复制它并打开文本编辑器。
粘贴您的 xml 代码并以 xml 格式保存 (name_of_your_theme.xml)。
在 gedit 中选择“编辑” -> “首选项” -> “字体和颜色”,然后单击“+”添加新主题。
选择您的主题。
我找到了解决这个问题的方法:
gedit但我仍然有一个问题:我搜索/usr/share/gtksourceview-3.0/styles/文件夹,但找不到我刚刚创建的自己的配色方案文件。系统将配色方案文件存储在哪里?
| 归档时间: |
|
| 查看次数: |
34814 次 |
| 最近记录: |