In our environment, we write template Javascript which has areas where server pre-processing inserts values into the code.
An example would look like this:
var myVarValue = "`serverProcessedVarValue()`";
In the above, the server runs the function demarcated by the backticks and writes the result between the quotes, then ships that javascript off to the browser.
We use IntelliJ IDEA. It (and Webstorm, I'm assuming) highlights these backticks as a coding error. I can't find a setting to change that behavior. Is there one?
Thanks!
To move one or more componentsDrag and drop the selection to the target container, or to the target area within the same container. The valid drop locations are highlighted with blue borders.
Right-click anywhere in the editor and choose Local History | Show History from the context menu. In the dialog that opens, the left-hand pane shows a list of all saved revisions of the current file with timestamps.
Backtick is supported in ES6 for multi-line string and there is a "JavaScript language version" settings in WebStorm. Changing it to ES6, will change that behavior.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With