相关依赖
ValueError: Namespace GtkSource not available for version 3.0 #368
apt-get install libgtksourceview-*
语言选择
Text view freeze with a page including a sourceview object
Code Block using Syntax Default crash Zim
WIP Zim, 代码块,选择 Defaults 语言,崩溃问题
https://github.com/zim-desktop-wiki/zim-desktop-wiki/issues/1921
https://github.com/zim-desktop-wiki/zim-desktop-wiki/issues/451
<?xml version="1.0" encoding="UTF-8"?>
<language id="text" _name="plaintext" version="2.0" _section="Other">
<metadata>
<property name="mimetypes">text/plain</property>
<property name="globs">*.txt</property>
</metadata>
<definitions>
</definitions>
</language>
share/gtksourceview-3.0/language-specs
快速插入
通过 Insert Code Block 方式,来插入代码块是比较麻烦的,我们希望能够快速插入代码块
# 11/07/2023 (1)通过快捷键,直接插入代码块;(2)且允许设置默认格式,并根据需求进行调整;
修改字体
在 Code Block 中,默认为 Monospace 字体。如果要修改,可以使用系统中 Fontcofig 中来配置 Monospace 字体;
# 10/27/2017 目前,貌似没有提供直接配置字体的方法;