Answer the question
In order to leave comments, you need to log in
How to teach IDEA to highlight the syntax of my template engine?
Good afternoon.
For my needs, I wrote a simple HTML/CSS/JS template engine - files, I want IDEA not to swear at its syntax.
It is enough that it simply refers to its labels, in the same way as, for example, PHP inserts in php files.
Here's a contrived example:
<html>
<head>
<title>`title#h`</title>
<style>
body {
background-color: `bgcolor`; /*тут адская ругань*/
color: `color`;
}
</style>
</head>
<body>
`ins body`
`for x: footerItems`
<a href="`x.href#h`">`x.title#h`</a>
`/for`
</body>
</html>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question