tay*_*ift 7 gedit syntax-highlighting
我在 gedit 语言菜单中没有看到 Swift 突出显示的选项。如何让 gedit 为我突出显示 Swift 代码?
A language definition for Swift has recently been added to the git repository of GtkSourceView (the library that performs syntax highlighting in gedit). It hasn't made it into any GtkSourceView release yet, but you can download it here:
https://git.gnome.org/browse/gtksourceview/plain/data/language-specs/swift.lang
Place this file (swift.lang) in this directory, creating it if necessary:
~/.local/share/gtksourceview-3.0/language-specs/
Run Code Online (Sandbox Code Playgroud)
Then gedit will highlight Swift code for you.
| 归档时间: |
|
| 查看次数: |
584 次 |
| 最近记录: |