Notepad-HTML-JS-Formater-Plugin icon indicating copy to clipboard operation
Notepad-HTML-JS-Formater-Plugin copied to clipboard

Template literals (Template strings) are not formatted correctly

Open Ya-Zahra opened this issue 4 years ago • 0 comments

Hi. Thanks for your good work. Template literals (Template strings) are not formatted correctly. [https://www.w3schools.com/js/js_string_templates.asp]

This does not seem to be implemented in your script at all. Implementing it seems like a simple task. Similar to what you did for strings. Thanks for implementing this.

For example, the following code:

 let text = `Welcome ${firstName}, ${lastName}!`;

is formatted as follows:

let text = `Welcome $ {  
     firstName  
}, $ {  
     lastName  
}! `;  

And of course this is a mistake.

Ya-Zahra avatar Dec 05 '21 00:12 Ya-Zahra