MATLAB: Code highlighting is erratic in app deisgner

app designer

The code highlighting in the app designer 'code view' is erratic. See the attached screen capture. I am using MATLAB 2016b on MAC OS X El Capitan (10.11.5). I cannot roll back to 2016a as the editor is very slow and .mlapp files between 2016a and 2016b are not compatible. Is there a fix known for this?
Thanks,
Kapil

Best Answer

I believe this a rare issue that affects some apps when first loaded from 16a to 16b. While the syntax highlighting is off, the execution and code logic for your app is not affected. My suggestion would be to save the app under a different filename, then edit your code and re-run. I believe this will prevent the incorrect syntax highlighting from happening again. I've notified the development team as well to see if there is a different solution.
Related Question