TinyOS and NesC syntax highlighting


Since I’ve been doing some more work with TinyOS, here is a gedit .lang file that provides nesC syntax highlighting.  I got the file from the author of this post on the TinyOS mailing list and it’s been pretty useful.  To install it in Ubuntu, place the file in /usr/share/gtksourceview-2.0/language-specs/.  Unfortunately, you’ve got to be root to do this and I don’t know of another way to add .lang files if you aren’t.  This is a problem for the departmental machines where I don’t have root access, so I can’t use custom gedit syntax highlighting.

There is a more heavyweight solution, if you like Eclipse.  Since I’ve been using Subclipse with Eclipse on several machines to keep all my code in sync, I’ve found Eclipse to be pretty useful.  A TinyOS 2.x Eclipse plugin is available on this site that provides syntax highlighting and it appears as though it will compile and install source code as well (though I haven’t tried that part).

2/21/2009: Since I’m on the topic of Eclipse, I’ve noticed that the Ubuntu repository Eclipse version is 3.2, but 3.4 is available from the Eclipse website.  Following this guide, it seems that you can override the /usr/eclipse directory with the new version if you want to upgrade.  Plugins will have to be reinstalled, though.

, , , , , , , , , ,

  1. No comments yet.
(will not be published)