2
给gedit加上Docker语法高亮
source link: https://www.lujun9972.win/blog/2018/11/05/%E7%BB%99gedit%E5%8A%A0%E4%B8%8Adocker%E8%AF%AD%E6%B3%95%E9%AB%98%E4%BA%AE/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
给gedit加上Docker语法高亮
gedit默认并不支持docker语法高亮。不过 Jasper J.F. van den Bosch
做了个语法文件放到github上了,我们可以直接使用。
首先下载语法文件:
wget https://raw.githubusercontent.com/ilogue/docker.lang/master/docker.lang
若想让语法文件给全用户生效,则执行
sudo mv docker.lang /usr/share/gtksourceview-3.0/language-specs/
若只希望语法文件对本用户生效,则执行
mv docker.lang ~/.local/share/gtksourceview-3.0/language-specs/
关于具体应该如何编辑 .lang
文件,可以参见 这里
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK