Re: Textadept 1.1

From: mitchell <mforal.n....at.gmail.com>
Date: Sat, 17 Jan 2009 15:47:27 -0800 (PST)

Brian,

> The correct buffer.lua and view.lua ARE being read and applied, but
> anything in lexers/themes/ isn't. Stranger still is that typing
> buffer:add_text(''..buffer:get_property('lexer.lua.color.theme')) into a
> running instance of Textadept prints "dark" to the buffer as expected. I
> just can't figure out why nothing is the correct color.

In lexers/lexer.lua around line 827 is where the lexer checks for and
loads a color theme. Try putting a '_G.print' statement in there to
find anything abnormal. 'color_theme' should be set as the
'lexer.lua.color.theme' property by Scintilla. It sounds like it is
not set. This may be the case if you're using a Scintilla pre-color
theme capable. You can get a 'scintilla-st.patch' from scite-st SVN.
(http://code.google.com/p/scite-tools/source/browse/branches/scite-st/
src/scintilla-st.patch). It should be applied to the latest Scintilla
release, not CVS.
Received on Sat 17 Jan 2009 - 18:47:27 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:37:06 EST