Added preferences for controlling margin display.
This commit is contained in:
parent
495c96d296
commit
2d9c85e154
2 changed files with 5 additions and 1 deletions
|
@ -20,10 +20,12 @@ make sure you don't have any syntax errors.
|
|||
{
|
||||
"defaultTheme": "chrome", //This should be any of the supported Ace themes
|
||||
"uiTheme": "light", //dark or light, your pick
|
||||
"cursor": "slim", //"ace", "slim", "smooth", "wide"
|
||||
|
||||
"indentation": 2, //indentation only in spaces, as God intended
|
||||
"wordWrap": true,
|
||||
"wrapLimit": false, //Set to the number of characters you want
|
||||
"wrapLimit":false, //Set to the number of characters you want or false for full window
|
||||
"showMargin": false,
|
||||
|
||||
//only fixed-width fonts supported, for now
|
||||
"fontFamily": "",
|
||||
|
|
|
@ -52,6 +52,8 @@ define(["file", "command", "settings!ace,user", "dom2"], function(File, command,
|
|||
userConfig = Settings.get("user");
|
||||
themes.value = userConfig.defaultTheme;
|
||||
editor.setTheme("ace/theme/" + themes.value);
|
||||
editor.setShowPrintMargin(userConfig.showMargin || false);
|
||||
editor.setPrintMarginColumn(userConfig.wrapLimit || 80);
|
||||
editor.container.style.fontSize = userConfig.fontSize ? userConfig.fontSize + "px" : null;
|
||||
editor.container.style.fontFamily = userConfig.fontFamily || null;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue