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 ...
- Curran Kelleher http://lifeofaprogrammergeek.blogspot.com/ 2010-04-24 01:12:17
- Thanks a million for this, really great work! You might want to update your MXML language definition as described here http://lifeofaprogrammergeek.blogspot.com/2010/03/flex-in-gedit.html to account for the new Flex 4 fx:Script tag, which when used with the current language files causes ugly red error colors.
- bedakeeve http://www.seacoastnh.com 2010-05-11 02:34:29
- functionality anthropogenic period gases wire
- mike brentlinger www.google.com 2010-08-11 19:56:17
- Thank you so much. This makes coding action script and flex in gedit soooooo much better.
- vxf http://vxf.hddpro40.pt/ 2010-09-18 03:09:10
- I have been looking for this for quite some time, thank you. Just a note here: you can create a gtksourceview-2.0/language-specs/ if you still don't have one.
© 2008 Markus Johnsson