Adding JavaScript ES6 to Dreamweaver CS6
Asked Answered
H

2

15

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

Heritage answered 22/8, 2017 at 15:57 Comment(0)
M
2

The "Edit > Preferences > Linting then Edit the JS file" is a bogus answer, there is no "linting" option in the preferences of Dreamweaver CS6. The "linting" feature wasn't added until Creative Cloud. It is unlikely that there will be a patch, Adobe wants you to switch to a subscription-based version instead.

Screenshot of Dreamweaver settings

Moriarty answered 20/8, 2019 at 12:46 Comment(0)
H
7

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

add this property:

"esversion" : 6

This helped me.

Harpp answered 25/9, 2017 at 14:29 Comment(2)
Yep, that works but is it just fixing the display of the error (problem/warning) in Dreamweaver rather than the underlying issue? Could someone explain whether there's a potential problem with certain clients not being able to run the code because they do not have a browser that supports this ES version?Thalamencephalon
This setting is not in CS6, but was introduced in CC versions as RyanF4's answer states. Therefore, this answer is incorrect for the question regarding CS6.Chor
M
2

The "Edit > Preferences > Linting then Edit the JS file" is a bogus answer, there is no "linting" option in the preferences of Dreamweaver CS6. The "linting" feature wasn't added until Creative Cloud. It is unlikely that there will be a patch, Adobe wants you to switch to a subscription-based version instead.

Screenshot of Dreamweaver settings

Moriarty answered 20/8, 2019 at 12:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.