I found myself doing something weird recently. Not for the first time,
of course, but this was a special kind of weird.
I was editing a file that's part of my website . It's the implementation of the search form
(reachable from the little magnifying glass in the nav bar). This
ends up as a normal HTML page, for sure, but it's written using an
unholy mishmash of Pollen syntax, Alpine.js custom attributes and
JavaScript. That makes it unenjoyable to edit, since syntax
highlighting and language-aware indentation don't really work.
This mixed language thing is well-known from React and Vue and Svelte
and all those JavaScript frameworks that (one way or another) put HTML
templates, CSS and JavaScript in the same file. People using React,
Vue or Svelte enjoy the economies of scale that come from using
popular things, and there are nice editor modes for them.
If you do weird stuff, you're on your own.
Actually, you're not on your own. Polymode has your back. You can read
about it below the fold.