Last active
June 8, 2016 12:42
-
-
Save dmiro/a6663f65856f273cf4ad58731f218447 to your computer and use it in GitHub Desktop.
SciTE properties for Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function stripTrailingSpaces(reportNoMatch) | |
local count = 0 | |
local fs,fe = editor:findtext("[ \\t]+$", SCFIND_REGEXP) | |
if fe then | |
repeat | |
count = count + 1 | |
editor:remove(fs,fe) | |
fs,fe = editor:findtext("[ \\t]+$", SCFIND_REGEXP, fs) | |
until not fe | |
print("Removed trailing spaces from " .. count .. " line(s).") | |
elseif reportNoMatch then | |
print("Document was clean already; nothing to do.") | |
end | |
return count | |
end | |
-- command.name.32.*=Strip Trailing Spaces | |
-- command.mode.32.*=subsystem:lua,savebefore:no,groupundo | |
-- command.shortcut.32.*=Alt+Shift+S | |
-- command.32.*=stripTrailingSpaces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source: http://python-esp.blogspot.com.es/2013/11/configurar-scite-scintilla-para-python.html | |
# line margin | |
line.margin.visible = 1 | |
line.margin.width=3+ | |
# monspace font | |
font.base=$(font.monospace),size:12 | |
font.small=$(font.monospace) | |
font.comment=$(font.monospace) | |
font.text=$(font.monospace) | |
font.text.comment=$(font.monospace) | |
font.embedded.base=$(font.monospace) | |
font.embedded.comment=$(font.monospace) | |
font.vbs=$(font.monospace) | |
# autocomplete = true | |
autocompleteword.automatic = 1 | |
# auto indent if : | |
indent.python.colon = 1 | |
# python indentation | |
view.indentation.guides = 1 | |
indent.size.*.py=4 | |
indent.size.*.pyw=4 | |
use.tabs.*.py=0 | |
use.tabs.*.pyw=0 | |
# check ( ... ) | |
braces.check = 1 | |
# lua strip trailing space command | |
command.name.32.*=Strip Trailing Spaces | |
command.mode.32.*=subsystem:lua,savebefore:no,groupundo | |
command.shortcut.32.*=Alt+Shift+S | |
command.32.*=stripTrailingSpaces | |
# salvar la sesion al salir | |
save.session=1 | |
session.bookmarks=1 | |
session.folds=1 | |
# visualizar el path en el tabbar | |
pathbar.visible=1 | |
# more fast with warp to 0. | |
wrap=0 | |
# cursor properties | |
caret.fore=#000000 | |
caret.period=500 | |
caret.additional.blinks=0 | |
caret.width=3 | |
caret.line.back=#FFFED8 | |
caret.line.back.alpha=63 | |
# background and colours | |
#style.*.32=$(font.base),back:#CCCCc0,fore:#00000f | |
#style.*.33=back:#C0C0C0,$(font.base) | |
#style.*.37=fore:#939393 | |
# show statusbar | |
statusbar.visible=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment