configure custom language

Hello,

I have a webapplication written in a language like php. It's Embedded Perl (EmbPerl) to be precise. An EmbPerl file looks like a html file using custom tags to generate html or JavaScript code.
<html>
<body>

  [# some comment #]
  hello [+ $text +] World

<script type="text/javascript" src="../js/somescript.js">
<script type="text/javascript" language="JavaScript">
     alert('test');
     alert('[+ $text +');
</script>
</body>
</html>

The example above contains an EmbPerl statement ([+ ... +], [# .... #] and so on...). As already stated, it's usage is like php. It is not important that WebStorm can evaluate this piece of code. For my case it would be the best to ignore the content of these code fragments ([+ ... +]). Currently WebStorm only displays a lot of errors.

My goal is to reafactor the JavaScript code in the whole application (renaming and moving functions to namespaces or classes). Altering a function located in a JavaScript file should also change it's usage in the EmbPerl-files using it.

Is there a way to configure WebStorm to ignore custom code fragments like [+   +] and others? It would make my life much easier (that and the decision to purchase the IDE),

thanks in advance

1 comment

Or is it possible to reconfigure PhpStorm instead?

0

Please sign in to leave a comment.