mirror of
https://github.com/beautifier/js-beautify.git
synced 2025-02-17 03:38:08 +00:00
parent
fd7ebd79a2
commit
b50ef5ec4b
@ -163,7 +163,6 @@
|
||||
|
||||
<div style="line-height: 0">
|
||||
<select name="language" id="language">
|
||||
<option value="auto">Auto Detect</option>
|
||||
<option value="css">CSS</option>
|
||||
<option value="html">HTML</option>
|
||||
<option value="js">JavaScript</option>
|
||||
|
@ -185,7 +185,7 @@ function beautify() {
|
||||
var selectedOptions = JSON.stringify(opts, null, 2);
|
||||
$('#options-selected').val(selectedOptions);
|
||||
|
||||
if (language === 'html' || (language === 'auto' && looks_like_html(source))) {
|
||||
if (language === 'html') {
|
||||
output = the.beautifier.html(source, opts);
|
||||
} else if (language === 'css') {
|
||||
output = the.beautifier.css(source, opts);
|
||||
|
Loading…
x
Reference in New Issue
Block a user