Why are cells not highlighted correctly when the text in the MATLAB Editor contains a syntax error?

1 view (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 21 Jan 2010
If the text contains syntax errors, the editor in MATLAB 7.6 (R2008a) is not accurately able to determine cell locations. This behavior can manifest in two ways.
1. If a file containing a syntax error is opened in the editor, no cell locations will be displayed until the syntax error is fixed.
2. If a syntax error is introduced into a file with existing cells, the existing cell locations will track insertions and deletions in the document, but new cells will not be recognized until the syntax error is fixed. Furthermore, it is possible that the document changes will invalidate the old cell locations which are being displayed.
Use the M-Lint utility to find and fix syntax errors to restore correct cell behavior.

More Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Tags

Products


Release

R2008a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!