2014-10-09 3 views
0

ejs 파일 자동 포맷 기능이 포함 된 패키지를 찾고 있습니다. 이미 HTMLPrettify를 설치했습니다. ejs를 html 형식으로 추가하여 html 코드로 형식화 할 수 있습니까? 이것은 내 목적에 충분할 것입니다.숭고한 텍스트 2 ejs 포맷 용 패키지

답변

6

추가는 allowed_file_extensions "EJS"에 파일을 .jsbeautifyrc합니다 :

{ 
"html": { 
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg", "ejs"], 
"brace_style": "collapse", // "expand", "end-expand", "expand-strict" 
"indent_char": " ", 
"indent_handlebars": false, // e.g. {{#foo}}, {{/foo}} 
"indent_inner_html": false, 
"indent_scripts": "keep", // "separate", "normal" 
"indent_size": 4, 
"max_preserve_newlines": 10, 
"preserve_newlines": true, 
"unformatted": ["a", "sub", "sup", "b", "i", "u", "pre"], 
"wrap_line_length": 0 
}, ... 
+0

덕분에,이 날 위해 일했습니다. – Reza

+0

이것은 ST3에서도 나를 위해 일했습니다. –