aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-06-06 20:08:59 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-06-06 20:08:59 -0400
commit1e59cc9d3f3951487ce1419b7904af2765bbc2cb (patch)
treeb72a2751ad993a77dae4c143aa62bae1b78c97b2
parentb3f9ab6697a9b8ec60577f1f0472e667502a5585 (diff)
downloadtextadept-1e59cc9d3f3951487ce1419b7904af2765bbc2cb.tar.gz
textadept-1e59cc9d3f3951487ce1419b7904af2765bbc2cb.zip
Setting "style." properties updates styles immediately; doc/09_Themes.md
Requires Scintillua r370.
-rw-r--r--doc/09_Themes.md12
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