Hi all,
In Umbraco 13, when I edit a Template (.cshtml) in the backoffice, it lets me save even if the file has errors — like unclosed HTML tags, missing braces/parentheses, or broken Razor blocks (@if, @foreach). There are no warnings or squiggles, it just saves normally and only fails at runtime.
Is there any way to:
-
validate Razor/HTML before saving,
-
block invalid templates using an event,
-
or add features like auto-close tags or syntax checking?
Or is editing templates in an external IDE the only recommended option?
Thanks!