mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
only do html validation with html files
This commit is contained in:
parent
264d715447
commit
214465a369
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue