I have elements that contain various things. Some contain HTML; web-mode does not realize that so it messes up the indentation. Some contain CSS; same issue.
My first preference is, can I somehow tell web-mode what language is inside each element? (I can mechanically intuit from the attributes. I can do light Emacs hacking.
My second preference is, can I somehow tell web-mode just to not mess with any formatting inside a element? At least then, after I manually get it formatted right, web-mode won't clobber it.
<html>
<head>
</head>
<body>
<script type="text/x-LP5">
<!-- need to tell web-mode this is HTML; otherwise it has no clue and indents like thi: -->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>LP5 bootstrap</title>
<style>
@<LP5_GlobalCSS@>
</style>
</head>
<body>
@<LP5_1@>
</body>
</html>
</script>
</body>
</html>
<script>
whosetype
is not recognized.