Browse Source

在线调试

master
richie 7 years ago
parent
commit
29b8fc4332
  1. 16
      designer_base/src/com/fr/design/javascript/beautify/BeautifyOption.java

16
designer_base/src/com/fr/design/javascript/beautify/BeautifyOption.java

@ -35,21 +35,37 @@ public class BeautifyOption {
} }
/**
* 缩进个数默认为4
* @param indentSize 缩进个数
*/
public BeautifyOption indentSize(int indentSize) { public BeautifyOption indentSize(int indentSize) {
this.indentSize = indentSize; this.indentSize = indentSize;
return this; return this;
} }
/**
* 缩进使用的字符默认为一个空格
* @param indentChar 缩进字符
*/
public BeautifyOption indentChar(String indentChar) { public BeautifyOption indentChar(String indentChar) {
this.indentChar = indentChar; this.indentChar = indentChar;
return this; return this;
} }
/**
* 是否使用tab来作为缩进字符默认为false
* @param indentWithTabs 使用tab作为缩进字符则返回true否则返回false
*/
public BeautifyOption indentWithTabs(boolean indentWithTabs) { public BeautifyOption indentWithTabs(boolean indentWithTabs) {
this.indentWithTabs = indentWithTabs; this.indentWithTabs = indentWithTabs;
return this; return this;
} }
/**
* 换行符默认为"\n"
* @param eol 换行符
*/
public BeautifyOption eol(String eol) { public BeautifyOption eol(String eol) {
this.eol = eol; this.eol = eol;
return this; return this;

Loading…
Cancel
Save