Add 'Use Soft Tabs' option to bookmarklet settings.
This is needed to edit Python code and Makefiles.
This commit is contained in:
parent
a04cee8dcc
commit
666f01179c
1 changed files with 10 additions and 3 deletions
|
|
@ -366,6 +366,10 @@ function setupApi(editor, editorDiv, settingDiv, ace, options) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "useSoftTabs":
|
||||||
|
session.setUseSoftTabs(toBool(value));
|
||||||
|
break;
|
||||||
|
|
||||||
case "showPrintMargin":
|
case "showPrintMargin":
|
||||||
renderer.setShowPrintMargin(toBool(value));
|
renderer.setShowPrintMargin(toBool(value));
|
||||||
break
|
break
|
||||||
|
|
@ -402,7 +406,8 @@ function setupSettingPanel(settingDiv, settingOpener, api, options) {
|
||||||
theme: "Theme:",
|
theme: "Theme:",
|
||||||
fontSize: "Font Size:",
|
fontSize: "Font Size:",
|
||||||
softWrap: "Soft Wrap:",
|
softWrap: "Soft Wrap:",
|
||||||
showPrintMargin: "Show Print Margin:"
|
showPrintMargin: "Show Print Margin:",
|
||||||
|
useSoftTabs: "Use Soft Tabs:"
|
||||||
}
|
}
|
||||||
|
|
||||||
var optionValues = {
|
var optionValues = {
|
||||||
|
|
@ -446,7 +451,8 @@ function setupSettingPanel(settingDiv, settingOpener, api, options) {
|
||||||
80: "80",
|
80: "80",
|
||||||
free: "Free"
|
free: "Free"
|
||||||
},
|
},
|
||||||
showPrintMargin: BOOL
|
showPrintMargin: BOOL,
|
||||||
|
useSoftTabs: BOOL
|
||||||
}
|
}
|
||||||
|
|
||||||
var table = [];
|
var table = [];
|
||||||
|
|
@ -510,7 +516,8 @@ window.__ace_shadowed__.options = {
|
||||||
gutter: "false",
|
gutter: "false",
|
||||||
fontSize: "12px",
|
fontSize: "12px",
|
||||||
softWrap: "off",
|
softWrap: "off",
|
||||||
showPrintMargin: "false"
|
showPrintMargin: "false",
|
||||||
|
useSoftTabs: "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue