Simple GEdit .lang & github color scheme
F i L
witte2008 at gmail.com
Sat Sep 8 23:17:38 PDT 2012
After being annoyed with GEdit's presentation of D code, I
decided to do something about it. This isn't any big
"Announcement" or anything, just thought I'd share.
I made a color-scheme based on the colors from Github cause
they're pretty and D loves github :). And I modified the the
'lang.d' gtk-sourceview file in the following ways:
- @property/@system/etc are properly highlighted
- I included common types like 'string', 'size_t', 'c_long', &
even core.simd's vector types like 'float4'.
- Since D follows camelCaseSyntax consistently and the community
seems to largely follow it as well, I made all words starting
with a capital letter (PascalCase) colored as types. This is nice
because user-types blend in nicely with built-in ones
(int/float/etc) and helps you pick out where the code is dealing
with a Type rather than a local.
Screenshot: http://reign-studios.com/screenshots/DlangGedit.png
Download:
http://reign-studios.com/d-downloads/gtksourceview-3.0.tar.gz
More information about the Digitalmars-d-announce
mailing list