Syntax highlighting for gtksourceview

237 views
Skip to first unread message

Steffen Bauer

unread,
Aug 20, 2013, 11:12:21 AM8/20/13
to elixir-l...@googlegroups.com
I am currently experimenting with elixir using gedit under Debian linux, which uses gtksourceview. The elixir homepage contains editor code support for emacs, textmate and vi, but unfortunately not for gtksourceview.

Because programming is no fun without proper syntax highlighting, I spend the last days writing an elixir.lang spec file for gtksourceview. I would like to share it. Just copy it to /usr/share/gtksourceview-3.0/language-specs/ and any application using gtksourceview should start to show elixir syntax.

It is still my first attempt writing a language spec file for gtksourceview, so please handle it as very alpha. Any feedback is very much appreciated.
elixir.lang

Mario Martínez

unread,
Dec 5, 2013, 10:12:54 PM12/5/13
to elixir-l...@googlegroups.com
Thanks, Steffen, I'm starting with Elixir. I appreciate you released this lang file. Now is working on my gedit.

Josh Adams

unread,
Dec 6, 2013, 8:58:36 PM12/6/13
to elixir-l...@googlegroups.com
Nice.  Could I propose you fork the elixir homepage and send a Pull Request with a link to your gedit support? https://github.com/elixir-lang/elixir-lang.github.com

I hadn't initially realized the elixir site was a GH page, and contributable.  Wanted to point it out, so we can all chip in to keep making it more awesome :)

Thanks for adding gedit support...<3 the community, feels good.

Steffen Bauer

unread,
Dec 19, 2013, 4:48:46 AM12/19/13
to elixir-l...@googlegroups.com
Update:

Jose merged my pull request, so Elixir-GtkSourceView is now officially included in the code editor support projects for Elixir.

It is here on GitHub:

elixir-gtksourceview

I made some bug fixes. Especially important was the fixing of an very inefficient regex which slowed down gedit significantly when editing larger files. So everybody who is using the old elixir.lang file is strongly urged to update.
Reply all
Reply to author
Forward
0 new messages