only do html validation with html files

This commit is contained in:
Kyle Drake 2024-10-01 18:26:05 -05:00
parent 264d715447
commit 214465a369

View file

@ -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 %>
}
});
});