Wiki

Changes between Version 3 and Version 4 of GtkEditors

Show
Ignore:
Timestamp:
12/03/09 04:54:23 (15 years ago)
Author:
Chuck
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GtkEditors

    v3 v4  
    33Gtk/Gnome text editors typically use a common library component called [http://projects.gnome.org/gtksourceview/ GtkSourceView] which means that adding Cobra language support for it enhances multiple applications. If you are specifically using [http://www.gnome.org/projects/gedit/ gedit], they have a [http://live.gnome.org/Gedit/NewLanguage NewLanguage] wiki page with instructions. Also, note that gedit is available for Windows, Mac and Linux. 
    44 
    5 You can drop a new language file in '''(root)/share/gtksourceview-2.0/language-specs''' where '''(root)''' is one of: 
     5You can add a "cobra.lang" file to enable syntax highlighting. Under Windows: 
     6 
     7 * Windows XP: %userprofile%\My Documents\gtksourceview-2.0\language-specs\ 
     8 * Windows Vista/7: %userprofile%\Documents\gtksourceview-2.0\language-specs\ 
     9 * 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\... 
     10 
     11Under Mac, Linux and other UnixLike systems, put "cobra.lang" in '''(root)/share/gtksourceview-2.0/language-specs''' where '''(root)''' is one of: 
    612 * ~/.local 
    713 * /opt