659
edits
Carandraug (talk | contribs) (Moved gedit section from the old wiki) |
Carandraug (talk | contribs) m (using Template:Path template) |
||
Line 2: | Line 2: | ||
== syntax highlight == | == syntax highlight == | ||
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]. | 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 | 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/}} | ||
The lang files usually reside at | |||
== Code comment == | == Code comment == | ||
Line 15: | Line 13: | ||
== Embedded Terminal == | == Embedded Terminal == | ||
One of the gedit plugins allows to have an embedded terminal in the text editor window. By default, this terminal will show up on the bottom panel. If you prefer to move it to the side panel (maximize vertical space and see as many lines of code as possible), make the following changes on | One of the gedit plugins allows to have an embedded terminal in the text editor window. By default, this terminal will show up on the bottom panel. If you prefer to move it to the side panel (maximize vertical space and see as many lines of code as possible), make the following changes on {{Path|/usr/lib/gedit/plugins/terminal.py}} (or whatever your distro placed it). | ||
261,262c261,262 | 261,262c261,262 |