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

1 Ansicht (letzte 30 Tage)
Cells are not highlighted properly in the MATLAB Editor in cell mode if the code in the editor contains a syntax error.

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 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.

Weitere Antworten (0)

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2008a

Community Treasure Hunt

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

Start Hunting!

Translated by