diff options
author | 2013-05-15 17:00:50 -0400 | |
---|---|---|
committer | 2013-05-15 17:00:50 -0400 | |
commit | d042865f672d6708df80250c9c59172148a55f11 (patch) | |
tree | a9c38372853d202d843564ebff9c6eeee60b88fb /modules/textadept/editing.lua | |
parent | e2767cd40f0994ea97cb91fb9e9ceef58b8f3342 (diff) | |
download | textadept-d042865f672d6708df80250c9c59172148a55f11.tar.gz textadept-d042865f672d6708df80250c9c59172148a55f11.zip |
Rewrote theme implementation.
Themes are now just single files that share Textadept's Lua state.
Also added a new "settings.lua" that functions in place of buffer and view theme
files.
Requires latest Scintillua.
Diffstat (limited to 'modules/textadept/editing.lua')
-rw-r--r-- | modules/textadept/editing.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua index 3fd8cb5b..aefb2eb4 100644 --- a/modules/textadept/editing.lua +++ b/modules/textadept/editing.lua @@ -27,9 +27,9 @@ local M = {} -- @field STRIP_WHITESPACE_ON_SAVE (bool) -- Strip trailing whitespace on file save. -- The default value is `true`. --- @field INDIC_HIGHLIGHT_BACK (number) --- The color, in "0xBBGGRR" format, used for an indicator for the --- [highlighted word](#highlight_word). +-- @field HIGHLIGHT_COLOR (string) +-- The name of the color in the current theme to +-- [highlight words](#highlight_word) with. module('_M.textadept.editing')]] M.AUTOPAIR = true @@ -37,7 +37,7 @@ M.HIGHLIGHT_BRACES = true M.TYPEOVER_CHARS = true M.AUTOINDENT = true M.STRIP_WHITESPACE_ON_SAVE = true -M.INDIC_HIGHLIGHT_BACK = not CURSES and 0x4D99E6 or 0x00FFFF +M.HIGHLIGHT_COLOR = not CURSES and 'color.orange' or 'color.yellow' --- -- Map of lexer names to line comment prefix strings for programming languages, @@ -499,7 +499,7 @@ end -- Sets view properties for highlighted word indicators and markers. local function set_highlight_properties() - buffer.indic_fore[INDIC_HIGHLIGHT] = M.INDIC_HIGHLIGHT_BACK + buffer.indic_fore[INDIC_HIGHLIGHT] = buffer.property_int[M.HIGHLIGHT_COLOR] buffer.indic_style[INDIC_HIGHLIGHT] = _SCINTILLA.constants.INDIC_ROUNDBOX buffer.indic_alpha[INDIC_HIGHLIGHT] = 255 if not CURSES then buffer.indic_under[INDIC_HIGHLIGHT] = true end |