0

Is it possible to create a custom language in PhpStorm that extends HTML language. I want to add CoffeeScript and Mammouth support to HTML. something like this:

<!Doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Second</title>
</head>
<body>
  <p>{{ echo 'mammouth' }}</p>
  <script>
    alert 'Hello CoffeScript!'
  </script>
</body>
</html>

Which will be compile to:

<!Doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Second</title>
</head>
<body>
  <p><?php echo "mammouth"; ?></p>
  <script>
    alert ('Hello CoffeScript!');
  </script>
</body>
</html>

1 Answer 1

1

CoffeeScript is already supported by IntelliJ platform, please learn more on the official website. As to Mammouth you can use handy Custom Language Support Tutorial and IntelliJ Platform SDK Documentation to study how to create your own plugin.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.