Editing Gedit
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
Gedit is the Gnome text editor. There's many plugins and options that may be able to improve your experience while coding with octave. | |||
== | == syntax highlight == | ||
Gedit has very good syntax | Gedit has very good syntax highlight for GNU octave, specially since v3 when it was split into matlab and octave. It uses gtksourceview for it and the latest lang file can be downloaded from [http://git.gnome.org/browse/gtksourceview/plain/data/language-specs/octave.lang their repository]. | ||
Note that since matlab and GNU octave files have the same mimetypes and globs in gedit, your files may be highlighted using matlab rules. To easiest way to fix this is removing {{Path|matlab.lang}}. The same happens with functions files which may be highlighted as Objective-C which can also be fixed by removing {{Path|objc.lang}}. However, system updates may recreate these files and so you may want to keep removing these files. The lang files usually reside at {{Path|/usr/share/gtksourceview-3.0/language-specs/}} | Note that since matlab and GNU octave files have the same mimetypes and globs in gedit, your files may be highlighted using matlab rules. To easiest way to fix this is removing {{Path|matlab.lang}}. The same happens with functions files which may be highlighted as Objective-C which can also be fixed by removing {{Path|objc.lang}}. However, system updates may recreate these files and so you may want to keep removing these files. The lang files usually reside at {{Path|/usr/share/gtksourceview-3.0/language-specs/}} | ||
Line 10: | Line 10: | ||
<property name="line-comment-start">#</property> | <property name="line-comment-start">#</property> | ||
== Embedded Terminal == | == Embedded Terminal == | ||
Line 32: | Line 33: | ||
Another useful plugin is the '''File browser pane''' that allows to easily access files from the side pane and navigate into directories to see the paths. Would be great to implement a new one, octave specific, with all the paths in the function search path. | Another useful plugin is the '''File browser pane''' that allows to easily access files from the side pane and navigate into directories to see the paths. Would be great to implement a new one, octave specific, with all the paths in the function search path. | ||