I do not see an option for Swift highlighting in the gedit language menu. How can I get gedit to highlight Swift code for me?
Asked
Active
Viewed 615 times
1 Answers
5
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/
Then gedit will highlight Swift code for you.
Adam Dingle
- 362
-
@taylor-swift , does this post not answer your question? It works at least for me, I think you could consider accepting it – Antek Oct 09 '18 at 08:18
language-swift,swift-debugger,autocomplete-swift,swift-autocomplete-snippets,language-swift3, ...) which support the Swift. – marc-medley Nov 16 '16 at 01:56