Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Dreamweaver bugs in code coloring/highlighting and bracket matching

New Here ,
Sep 03, 2022 Sep 03, 2022

In editing php files, right around the 2900-line mark, Dreamweaver becomes flaky, arbitrarily ceasing to color-code/highlight lines of code (they just become black-and-white text), and failing to match brackets that span significant sections of code (for example, I have a large switch statement that spans 1487 lines of code and yesterday, Dreamweaver ceased to match the brackets -- clicking on the bracket now produces no matching action either from the beginning or end (the code is proper and other php editors do match the brackets across this and other statements). Dreamweaver will still color code and match brackets appropirately in other files, in other tabs; it just flakes out over this particular somewhat large php file (and I do not want to break the file up into includes, etc).

TOPICS
Code , Performance , Product issue
83
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 03, 2022 Sep 03, 2022
LATEST

Since this is limited to one file and not all files, the likely culprit is your script.

 

When syntax colors stop working, it usually means your code contains syntax errors.  Dreamweaver chokes on errors even when other code editors don't, often resulting in erratic performance.  Check your code.

https://phpcodechecker.com/

https://validator.w3.org/

https://jigsaw.w3.org/css-validator/

https://esprima.org/demo/validate.html

 

I prefer a more modular approach to scripting so most of my PHP files contain way less than 1,000 lines of code.  But I have a few scripts that exceed 6,000 lines.  Apart from loading slower, I have not had any problems with them in Dreamweaver.

 

If it matters, I'm using an older Windows 10 desktop, 32GB of RAM, 1.5 TB of available primary drive space.  My local site folders reside in my local testing server on C:\wamp\www\...

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines