only do html validation with html files
This commit is contained in:
parent
264d715447
commit
214465a369
@ -288,6 +288,7 @@
|
||||
saveTextFile(false);
|
||||
});
|
||||
|
||||
<% if @monaco_mode == 'html' %>
|
||||
// Function to set markers based on HTMLHint validation
|
||||
function setHTMLMarkers() {
|
||||
const code = editor.getValue();
|
||||
@ -314,6 +315,7 @@
|
||||
|
||||
// Initial validation
|
||||
setHTMLMarkers();
|
||||
<% end %>
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user