Add 'Use Soft Tabs' option to bookmarklet settings.

This is needed to edit Python code and Makefiles.
This commit is contained in:
Gastón Kleiman 2011-02-19 06:18:12 +08:00 • committed by Fabian Jakobs
commit 666f01179c

View file

@ -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"
} }
}); });