Appearance
gedit 语言规范
¥gedit language-spec
Stylus 附带了 GtkSourceView 的 styl.lang
临时版本,基于 scss.lang
上的 Yanekk 的 work。
¥Stylus ships with a temporary version of styl.lang
for GtkSourceView, based off Yanekk's work on scss.lang
.
)
这是一个开始,为 GtkSourceView 编辑器(例如 gedit)提供了基本的 语言规范。
¥This is a start and provides a basic language spec for GtkSourceView editors such as gedit.
安装步骤
¥Installation Steps
将 styl.lang
下载到本地 language-specs
文件夹:
¥Download styl.lang
to your local language-specs
folder:
mkdir -p ~/.local/share/gtksourceview-2.0/language-specs/ && wget https://raw.github.com/stylus/stylus/master/editors/gedit/styl.lang -O ~/.local/share/gtksourceview-2.0/language-specs/styl.lang
mkdir -p ~/.local/share/gtksourceview-2.0/language-specs/ && wget https://raw.github.com/stylus/stylus/master/editors/gedit/styl.lang -O ~/.local/share/gtksourceview-2.0/language-specs/styl.lang
对于 gtksourceview 3.0 (gedit 3.0),用户:
¥For gtksourceview 3.0 (gedit 3.0), user:
mkdir -p ~/.local/share/gtksourceview-3.0/language-specs/ && wget https://raw.github.com/stylus/stylus/master/editors/gedit/styl.lang -O ~/.local/share/gtksourceview-3.0/language-specs/styl.lang
mkdir -p ~/.local/share/gtksourceview-3.0/language-specs/ && wget https://raw.github.com/stylus/stylus/master/editors/gedit/styl.lang -O ~/.local/share/gtksourceview-3.0/language-specs/styl.lang
更新 MIME 数据库并在 gedit 中享受 Stylus 语法!
¥Update the MIME database and enjoy Stylus syntax in gedit!
cd ~/.local/share
update-mime-database mime
cd ~/.local/share
update-mime-database mime
这比让 gedit 将你的 .styl
文件识别为 Apache Confs 有趣得多!
¥This is much more enjoyable than having gedit recognize your .styl
files as Apache Confs!
吃甜食?使用 gedit-icing 为 gedit 添加更多糖霜:https://github.com/niftylettuce/gedit-icing
¥Have a sweet tooth? Add more icing to gedit with gedit-icing: https://github.com/niftylettuce/gedit-icing