Version 4 (modified by Chuck, 15 years ago) |
---|
NOTE: We have this language file almost finished so don't bother working on it. -Chuck 2009-12-01
Gtk/Gnome? text editors typically use a common library component called GtkSourceView which means that adding Cobra language support for it enhances multiple applications. If you are specifically using gedit, they have a NewLanguage wiki page with instructions. Also, note that gedit is available for Windows, Mac and Linux.
You can add a "cobra.lang" file to enable syntax highlighting. Under Windows:
- Windows XP: %userprofile%\My Documents\gtksourceview-2.0\language-specs\
- Windows Vista/7: %userprofile%\Documents\gtksourceview-2.0\language-specs\
- It can be also be placed in %programfiles%\gedit\share\gtksourceview-2.0\language-specs\ but for security reasons the OS will throw any modified data into a virtualized directory. For example, that might be %userprofile%\AppData\Local\VirtualStore\...
Under Mac, Linux and other UnixLike systems, put "cobra.lang" in (root)/share/gtksourceview-2.0/language-specs where (root) is one of:
- ~/.local
- /opt
- /usr/local
- /usr
Editors that use GtkSourceView:
See also: EditorSupportTips, EditorSupport
Attachments
- cobra.lang (13.4 KB) - added by webnov8 15 years ago.
-
cobra.2.lang
(13.4 KB) - added by todd.a
15 years ago.
Updated to handle keywords as method names
- cobra.3.lang (13.4 KB) - added by todd.a 15 years ago.
-
cobra.4.lang
(13.1 KB) - added by nevdelap
14 years ago.
Support nested block comments.
-
cobra.5.lang
(13.1 KB) - added by nevdelap
14 years ago.
Removed 'fake' because it is deprecated, added 'readonly'.