diff options
author | 2013-06-06 20:08:59 -0400 | |
---|---|---|
committer | 2013-06-06 20:08:59 -0400 | |
commit | 1e59cc9d3f3951487ce1419b7904af2765bbc2cb (patch) | |
tree | b72a2751ad993a77dae4c143aa62bae1b78c97b2 /doc/09_Themes.md | |
parent | b3f9ab6697a9b8ec60577f1f0472e667502a5585 (diff) |
Setting "style." properties updates styles immediately; doc/09_Themes.md
Requires Scintillua r370.
Diffstat (limited to 'doc/09_Themes.md')
-rw-r--r-- | doc/09_Themes.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/09_Themes.md b/doc/09_Themes.md index 984afb14..b98d763c 100644 --- a/doc/09_Themes.md +++ b/doc/09_Themes.md @@ -61,6 +61,18 @@ settings. Tweaking themes is very simple with Lua's `dofile()` function. In your This loads Textadept's "light" theme, but applies your font preferences. The same technique works for tweaking individual theme colors and/or styles. +### Language-Specific + +Textadept also allows you to customize themes per-language through the +`events.LANGUAGE_MODULE_LOADED` event. For example, changing the color of +functions in Java from orange to black in the "light" theme looks like this: + + events.connect(events.LANGUAGE_MODULE_LOADED, function(lang) + if lang == 'java' then + buffer.property['style.function'] = 'fore:%(color.light_black)' + end + end) + ## GUI Theme There is no way to theme GUI controls like text fields and buttons from within |