Skip to content

gedit 语言规范

¥gedit language-spec

Stylus 附带了 GtkSourceViewstyl.lang 临时版本,基于 scss.lang 上的 Yanekkwork

¥Stylus ships with a temporary version of styl.lang for GtkSourceView, based off Yanekk's work on scss.lang.

Stylus Language Specification for GtkSourceView

)

这是一个开始,为 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