Highlighted

Code Hinting JS inline not work in DW 2018

New Here ,
Jul 12, 2019

Copy link to clipboard

Copied

A simple Code:

code_hinting_js.jpg

Why not detect the errors in javascript?

Views

100

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Code Hinting JS inline not work in DW 2018

New Here ,
Jul 12, 2019

Copy link to clipboard

Copied

A simple Code:

code_hinting_js.jpg

Why not detect the errors in javascript?

Views

101

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 12, 2019 0
LEGEND ,
Jul 13, 2019

Copy link to clipboard

Copied

I dont use  DW but l seem to remember in later versions you have to save the file before errors are detected. I also dont know if its capable of flagging errors outside of the scope of the file, in your case php

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 13, 2019 0
Adobe Community Professional ,
Jul 13, 2019

Copy link to clipboard

Copied

Do you have Linting and Code Hints enabled in Preferences?  I'm using the 2019 version here.  Some new preference options have been added to mine.    See screenshots.

I have a PHP document open and JS Code Hints work fine for me.

Nancy O'Shea, ACP
Alt-Web Design & Publishing

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 13, 2019 1
New Here ,
Jul 13, 2019

Copy link to clipboard

Copied

I'm sorry, the problem is not with code hinting but with linting in javascript (or bug warnings in javascript).
I already checked the Enabled Linting option and it is checked. Also, in * .js files it works as expected, but when I have an inline script on a * .php page it does not work as you can see in the image I submitted in this post.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 13, 2019 0
Adobe Community Professional ,
Jul 13, 2019

Copy link to clipboard

Copied

If you want to use  linting, keep JavaScript inside a .js file and PHP code in a .php file.

Nancy O'Shea, ACP
Alt-Web Design & Publishing

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 13, 2019 1
New Here ,
Jul 13, 2019

Copy link to clipboard

Copied

Unfortunately a further retrocess of the DW because in the CS6 version this worked like a candy!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 13, 2019 0