diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/.buffer.luadoc | 16 | ||||
-rw-r--r-- | core/.view.luadoc | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/core/.buffer.luadoc b/core/.buffer.luadoc index b0618699..0f6040b2 100644 --- a/core/.buffer.luadoc +++ b/core/.buffer.luadoc @@ -440,8 +440,6 @@ -- -- @field SEL_THIN (number, Read-only) -- --- @field STYLE_MAX (number, Read-only) --- -- @field UPDATE_CONTENT (number, Read-only) -- -- @field UPDATE_SELECTION (number, Read-only) @@ -1882,20 +1880,6 @@ function get_lexer(buffer, current) end -- @usage buffer:set_lexer('lexer_name') function set_lexer(buffer, lexer) end ---- --- Sets the buffer's color theme to be string *name* and (optionally) assigns --- the properties contained in table *props*. --- User themes override Textadept's default themes when they have the same name. --- If *name* contains slashes, it is assumed to be an absolute path to a theme --- instead of a theme name. --- @param buffer A buffer. --- @param name The name or absolute path of a theme to set. --- @param props Optional table of theme property assignments that override the --- theme's defaults. --- @usage buffer:set_theme('light', {font = 'Monospace', fontsize = 12}) --- @name set_theme -function set_theme(buffer, name, props) end - -- Unused Fields. -- * accessibility -- * annotation_style_offset diff --git a/core/.view.luadoc b/core/.view.luadoc index 7f1477af..40acda08 100644 --- a/core/.view.luadoc +++ b/core/.view.luadoc @@ -903,6 +903,8 @@ -- -- @field STYLE_LINENUMBER (number, Read-only) -- +-- @field STYLE_MAX (number, Read-only) +-- -- @field UPDATE_H_SCROLL (number, Read-only) -- -- @field UPDATE_V_SCROLL (number, Read-only) @@ -1405,3 +1407,17 @@ function unsplit(view) end -- @see events.BUFFER_BEFORE_SWITCH -- @see events.BUFFER_AFTER_SWITCH function goto_buffer(view, buffer) end + +--- +-- Sets the view's color theme to be string *name* and (optionally) assigns +-- the properties contained in table *props*. +-- User themes override Textadept's default themes when they have the same name. +-- If *name* contains slashes, it is assumed to be an absolute path to a theme +-- instead of a theme name. +-- @param view A view. +-- @param name The name or absolute path of a theme to set. +-- @param props Optional table of theme property assignments that override the +-- theme's defaults. +-- @usage view:set_theme('light', {font = 'Monospace', fontsize = 12}) +-- @name set_theme +function set_theme(view, name, props) end |