P
P
pqgg7nwkd42016-10-22 15:09:52
HTML
pqgg7nwkd4, 2016-10-22 15:09:52

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>

How to make it as easy as possible?
How much can such work be valued?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question