I've just written a language spec for YAML so that gedit can highlight it. gedit uses gtksourceview so the highlighting will be available on any application uses the same widget.
Get the latest version from Subversion repository:
Get the latest version from Subversion repository:
svn checkout http://masood.googlecode.com/svn/trunk/yaml-language-specor download a tarball from here. Check out the links below if you are also interested in writing a highlighting specification for another language. Links: Language Definition v2.0 Tutorial Language Definition v2.0 Reference
Get this into upstream
ReplyDeleteI see you use a different font from the default one. Can you tell me its name?
ReplyDeleteIt is Monaco font which I found on Ankit Modi's blog at http://blog.mayfounder.net/2009/02/10/adding-a-new-ttf-font-to-linux/
ReplyDeleteI only used it for the screenshot as the font doesn't seem to be monospace.
Monaco does not offer a "bold" variant, so the bold is faked by the operating system, making the letters wider. If your editor uses bold for syntax highlighting, Monaco will appear not monospaced. (Use DejaVu Sans Mono, has a much larger Unicode range and all variants.)
ReplyDeleteparth
ReplyDeleteI've found that you highlighting schema doesn't supports multiple spaces after ':' for map definitions.
ReplyDeleteI think I fixed this. Can I suggest to include this fix into your code?
Ivan,
ReplyDeletePlease email me your patch (my email address is included in file). I would be very happy to include it.
Masood,
ReplyDeleteI've emailed you a fixed file. Check your inbox (or spam folder :)
Thanx
Thank you so much. This is going to be very useful to me.
ReplyDeleteGreat stuff! Any chance of it getting upstream?
ReplyDeleteThanks, been looking for this :)
ReplyDeleteThanks! Was looking for something like this!
ReplyDeleteNote: since 3rd Gnome is out here the 'yaml.lang' should be placed in '/usr/share/gtksourceview-3.0/language-specs' (local path should be with 3.0 too).
ReplyDeleteI think it would be resonable to update slightly README file. :)
Thanks for definition! :)
Thanks a lot man! I had been looking for this :)
ReplyDeleteThanks a lot.
ReplyDeleteThanks. As many before me, I found this very useful.
ReplyDeleteThank you for this!
ReplyDeleteThanks everyone for their support. Unfortunately, I haven't had updated the code (or this blog) for a long time. I'll try to polish it a bit and submit it to upstream so it'll be available easily to everyone.
ReplyDeleteWhat words..
ReplyDeleteThank you so much for yaml.lang!
ReplyDeleteHint for users of medit (mooedit): copy this file to /usr/share/medit-1/language-specs/
I'm using linux mint and this worked flawlessly. Thanks for including the readme-- the instructions in there helped a lot. I'm working on a ruby on rails application and as you might be aware, rails uses Yaml--this is great so I can see highlighting now while coding out my schemas. Thanks!
ReplyDeleteGreat stuff!!
ReplyDelete