aboutsummaryrefslogtreecommitdiff
path: root/themes/scite
diff options
context:
space:
mode:
Diffstat (limited to 'themes/scite')
-rw-r--r--themes/scite/buffer.lua20
-rw-r--r--themes/scite/view.lua27
2 files changed, 47 insertions, 0 deletions
diff --git a/themes/scite/buffer.lua b/themes/scite/buffer.lua
new file mode 100644
index 00000000..d46cc88a
--- /dev/null
+++ b/themes/scite/buffer.lua
@@ -0,0 +1,20 @@
+-- Copyright 2007-2008 Mitchell mitchell<att>caladbolg.net. See LICENSE.
+-- SciTE editor theme for Textadept.
+
+local textadept, buffer = textadept, buffer
+
+-- folding
+buffer.property['fold'] = '1'
+buffer.property['fold.by.indentation'] = '1'
+
+-- tabs and indentation
+buffer.tab_width = 2
+buffer.use_tabs = false
+buffer.indent = 2
+buffer.tab_indents = true
+buffer.back_space_un_indents = true
+buffer.indentation_guides = 1
+
+-- various
+buffer.eol_mode = textadept.constants.SC_EOL_LF
+buffer.auto_c_choose_single = true
diff --git a/themes/scite/view.lua b/themes/scite/view.lua
new file mode 100644
index 00000000..3a1c2576
--- /dev/null
+++ b/themes/scite/view.lua
@@ -0,0 +1,27 @@
+-- Copyright 2007-2008 Mitchell mitchell<att>caladbolg.net. See LICENSE.
+-- SciTE editor theme for Textadept.
+
+local buffer, c = buffer, textadept.constants
+
+buffer.margin_width_n[0] = 4 * buffer:text_width(c.STYLE_LINENUMBER, "9")
+
+buffer.caret_period = 500
+
+-- fold margin
+buffer.margin_type_n[2] = c.SC_MARGIN_SYMBOL
+buffer.margin_width_n[2] = 16
+buffer.margin_mask_n[2] = c.SC_MASK_FOLDERS
+buffer.margin_sensitive_n[2] = true
+
+-- fold margin markers
+buffer:marker_define(c.SC_MARKNUM_FOLDEROPEN, c.SC_MARK_MINUS)
+buffer:marker_set_fore(c.SC_MARKNUM_FOLDEROPEN, 16777215)
+buffer:marker_set_back(c.SC_MARKNUM_FOLDEROPEN, 0)
+buffer:marker_define(c.SC_MARKNUM_FOLDER, c.SC_MARK_PLUS)
+buffer:marker_set_fore(c.SC_MARKNUM_FOLDER, 16777215)
+buffer:marker_set_back(c.SC_MARKNUM_FOLDER, 0)
+buffer:marker_define(c.SC_MARKNUM_FOLDERSUB, c.SC_MARK_EMPTY)
+buffer:marker_define(c.SC_MARKNUM_FOLDERTAIL, c.SC_MARK_EMPTY)
+buffer:marker_define(c.SC_MARKNUM_FOLDEREND, c.SC_MARK_EMPTY)
+buffer:marker_define(c.SC_MARKNUM_FOLDEROPENMID, c.SC_MARK_EMPTY)
+buffer:marker_define(c.SC_MARKNUM_FOLDERMIDTAIL, c.SC_MARK_EMPTY)