GEdit language files for MXML, ActionScript and GLSL
(I know it's "gedit" and not "GEdit", but the former looks horrible at the beginning of a sentence and especially in a title on, say, a blog.)
I've written a MXML language file for gedit based on
Julien Castelain's ActionScript language file
and the default XHTML language file that comes with gtksourceview-2.0. A language file let
gedit or any program that used gtksourceview (like Anjuta and Mono Develop) do proper syntax highlighting for the given language. This makes hacking Flex under Ubuntu a pleasure since I've grown used to gedit's ways of doing things.
I've also modified Juliens language file to support a few new language features like get/set functions. I also moved the const keyword from 'reserved' to 'declarations'.
Download: actionscript.lang MXML.lang
Put these files in ~/.local/share/gtksourceview-2.0/language-specs/ or in /usr/share/gtksourceview-2.0/.
GLSL
This reminded me that I also created an OpenGL Shading Language (GLSL) language file a while back.
Download: glsl.lang
Again, put it in ~/.local/share/gtksourceview-2.0/language-specs/ or in /usr/share/gtksourceview-2.0/.
Comments
- Mike http://www.eggplant.ws/ 2009-02-04 15:41:14
- The MXML language file is a godsend. Thanks for sharing!
- Stoffe http://www.example.com 2009-03-05 19:07:04
- Thanks! Are these made available to the gtksourceview project, so they can add them to the actual distribution? Also, would be good if the mime databases were updated to recognize these files instead of setting the syntax manually.
- Cristian www.fision.cl 2009-08-16 05:15:51
- THANKS!!!!!
- iongion http://gion.ro 2009-12-22 14:14:58
- Marvelous, if only i could use snippets on windows GEdit ...
© 2008 Markus Johnsson