Unfortunately we have no outline here inside the editor and an error is shown because not valid JSON (what is correct).
Wanted
auto detect thymeleaf (when thymeleaf support is enabled in preferences)
no error marker
working outline
Solution
when it is a thyme leaf template, the parsed document shall not be the origin but - like in yaml editor for go templates - a tampered JSON document, where all thymeleaf parts are simply removed/replaced by spaces
Situation
shows an example for a thymeleaf template (see https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html#textual-template-modes)
Unfortunately we have no outline here inside the editor and an error is shown because not valid JSON (what is correct).
Wanted
Solution
Example1
will be replaced internally to
Example2
will be replaced internally to
Detection howto
Everything starting with
[#
marks a thymeleaf beginning tag, terminated by]
[/
marks a thymeleaf end tag, terminated by]