Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding JavaScript ES6 to Dreamweaver CS6

Tags:

dreamweaver

How do I make it so that Dreamweaver CS6 doesn't give me a syntax error when I use let instead of var?

like image 395
Phillip Senn Avatar asked Aug 22 '17 15:08

Phillip Senn


People also ask

How do you add JavaScript in Dreamweaver?

To attach scripts to your page, from within your defined site, go to Insert > HTML > Script and browse to the correct . js file.

How do I open JavaScript in Dreamweaver?

To add JavaScript code, click in either the head or body section of a page and then choose Insert→HTML→Script Objects→Script. In the Script window that appears, from the Type menu, choose “none” if you're working on an HTML5 page or “text/javascript” for XHTML or HTML 4 pages.

How do I use jQuery in Dreamweaver?

Add jQuery effectsIn the Design or Code view of your Dreamweaver document, select the element to which you want to apply a jQuery effect. Select Windows > Behaviors to open the Behaviors panel. Click the Plus icon, click Effects, and then click the required effect.


1 Answers

Ok, just go to: Edit > Preferences > Linting then Edit the JS file.

add this property:

"esversion" : 6

This helped me.

like image 164
NRiebesel Avatar answered Nov 19 '22 18:11

NRiebesel