Skip to main content
Participant
September 3, 2022
Question

Dreamweaver bugs in code coloring/highlighting and bracket matching

  • September 3, 2022
  • 1 reply
  • 121 views

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).

This topic has been closed for replies.

1 reply

Nancy OShea
Community Expert
Community Expert
September 3, 2022

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