Hello All,
I made a quick highlight file for the .pde extension in gedit. It is simply an alteration of the c.lang file, so that it recognizes the .pde format and presents the Arduino name in the drop-down menu. Unfortunately, I can't seem to add a file to this posting. However, I can offer two options to those interested:
-
login and send me a message with your email.
-
copy and paste the following code:
<language id="c" _name="Arduino" version="2.0" _section="Sources">
<metadata>
<property name="mimetypes">text/x-c;text/x-csrc;image/x-xpixmap</property>
<property name="globs">*.pde</property>
<property name="line-comment-start">//</property>
<property name="block-comment-start">/*</property>
<property name="block-comment-end">*/</property>
</metadata>
To do this, copy the code. Open the c.lang file in the language-spec directory in gedit. Paste this code snippet over the first section after the comments. Save the file as arduino.lang. Bob's your uncle.
It's nothing ground-breaking, but it is convenient.
Cheers!
derezdev
20090901 update
paths to gedit are:
Linux
The preinstalled language files are usually located in /usr/share/gtksourceview-2.0/language-specs. Custom user languages are usually placed in ~/.local/share/gtksourceview-2.0/language-specs.
MSWindows
\gedit\share\gtksourceview-2.0\language-specs
Mac
There are ports of gedit, however I am not sure what the path would be.
reference:
http://live.gnome.org/Gedit/NewLanguage