@@ -1,9 +1,12 @@
|
|||||||
[DEFAULT]
|
|
||||||
|
|
||||||
[editor]
|
[editor]
|
||||||
theme = web2py
|
theme = twilight
|
||||||
editor = default
|
editor = sublime
|
||||||
closetag = true
|
closetag = true
|
||||||
|
tabwidth = 4
|
||||||
|
highlightline = true
|
||||||
|
linenumbers = true
|
||||||
|
codefolding = false
|
||||||
|
indentwithtabs = false
|
||||||
|
|
||||||
[editor_sessions]
|
[editor_sessions]
|
||||||
welcome = welcome/models/db.py,welcome/controllers/default.py,welcome/views/default/index.html
|
welcome = welcome/models/db.py,welcome/controllers/default.py,welcome/views/default/index.html
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
return files
|
return files
|
||||||
}}
|
}}
|
||||||
{{themes = [f[:-4] for f in listfiles('admin', "static/codemirror/theme", regexp='.*\.css$' )]}}
|
{{themes = [f[:-4] for f in listfiles('admin', "static/codemirror/theme", regexp='.*\.css$' )]}}
|
||||||
{{editors = ['default', 'vim', 'emacs']}}
|
{{editors = ['default', 'vim', 'emacs', 'sublime']}}
|
||||||
|
|
||||||
<form id="editor_settings_form" class="form-horizontal" action="">
|
<form id="editor_settings_form" class="form-horizontal" action="">
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" for="tabwidth">{{=T('Tab width (# characters)')}}</label>
|
<label class="control-label" for="tabwidth">{{=T('Tab width (# characters)')}}</label>
|
||||||
<div class="controls">{{=SELECT(range(1,9, 1), value=editor_settings['tabwidth'], _name="tabwidth" )}}</div>
|
<div class="controls">{{=SELECT(list(range(1,9, 1)), value=editor_settings['tabwidth'], _name="tabwidth" )}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" for="indentwithtabs">{{=T('Indent with tabs')}}</label>
|
<label class="control-label" for="indentwithtabs">{{=T('Indent with tabs')}}</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user