1) edit ~/.config/geany/filetype_extensions.conf
and add:
Mythryl=*.my;
2) create ~/.config/geany/filedefs/filetypes.Mythryl.conf
with:
[styling] number=0x400080;0xffffff;false;false string=0x008000;0xffffff;false;false word=0x111199;0xffffff;true;false [keywords] primary=print printf if elif else fi case esac for fun package foreach exit show_vals show_pkgs show_api show_api tolower toupper reverse strlen strcat implode reverse map apply head tail explode strsort struniqsort shuffle length [settings] extension=my comment_open=# comment_close= comment_use_indent=true lexer_filetype=C
I'm experimenting with some other stuff, but that's the absolute minimum that works for me.
notes ∞
I kept it simple by using bash syntax highlighting. It works just fine except that I cannot use a single-quote within a comment. One single single-quote will colour everything afterwards, so I end up using two. Example: Can''t
.
/home/user/.config/geany/filetype_extensions.conf
Mythryl=*.my;
Last updated 2017-11-19 at 02:54:05