mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 09:42:36 +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);
|
saveTextFile(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
<% if @monaco_mode == 'html' %>
|
||||||
// Function to set markers based on HTMLHint validation
|
// Function to set markers based on HTMLHint validation
|
||||||
function setHTMLMarkers() {
|
function setHTMLMarkers() {
|
||||||
const code = editor.getValue();
|
const code = editor.getValue();
|
||||||
|
@ -314,6 +315,7 @@
|
||||||
|
|
||||||
// Initial validation
|
// Initial validation
|
||||||
setHTMLMarkers();
|
setHTMLMarkers();
|
||||||
|
<% end %>
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue