gmate / gmate

Set of plugins and improvements to make Gedit a powerfull programmer text editor
1.04k stars 155 forks source link

how to add custom textmate theme? #175

Open netzgestaltung opened 10 years ago

netzgestaltung commented 10 years ago

Hi - a long time ago i wrote my own syntax theme for sublime-text (texmate compatible) i see the selection of themes but i like to add my custom syntax highlighter theme -

how do i do this?

waldyrious commented 10 years ago

I collected a few notes (and useful links) about the process here the last time I wrote a custom theme for gedit/gmate -- maybe that'll be useful to you?

netzgestaltung commented 10 years ago

hmmm - i think its more about how to add a new language then to have new highlighter scheme for multiple languages

but ists interesseting and can be usefull when i try to add a html/js combined language file next time!

i now have this source code: https://github.com/netzgestaltung/test/blob/master/majors.tmTheme

netzgestaltung commented 10 years ago

i found the files on my system: /usr/share/gtksourceview-3.0/styles - they need to be converted somehow to the right xml format. the question is if there is an automated tool or if its all handcrafted.

netzgestaltung commented 10 years ago

there it is: https://github.com/lexrupy/tm2gtksw2 hmm i dont know anything about ruby...

Shell: gem install tm2gtksw2 ERROR: Could not find a valid gem 'tm2gtksw2' (>= 0) in any repository

netzgestaltung commented 10 years ago

is there any how-to how to use tm2gtksw2 or how to convert my custom textmate theme?