In every row but the first, the & is marked as wrong, with the tooltip message more cols in tabular than specified. If I keep (wrongly) adding columns in \begin{tabular}{lll}, the next & is accepted for each additional columns; so it seems like the syntax checker starts counting columns, but forgets to reset the counter after each row.
works here without flaw.
which OS,which version of txs.
Please provide a file with the problematic text.
Windows 7-64, TeXstudio 2.11.2 (hg 6192:72f68414a729) Using Qt Version 5.6.1, compiled with Qt 5.6.1 R, and also with TeXstudio portable 2.10.8 (hg 5804:967c6023de2d) Using Qt Version 5.5.1, compiled with Qt 5.5.1 R
The problem occurs really with any
tabular, but I attached the file that I used for the screenshots, which didn’t contain anything else but the bare essentials.please execute Help/check active completion files and post the result.
Last edit: Jan Sundermeyer 2016-10-29
still works fine here.
Apart from the fact, that there is no need to activate most of the cwls globally, it looks okay.
Argh, never mind, I found the problem: For some reason, I had entered
\\as an Additional Command under Custom Highlighting. It must have been wrongly highlighted at some point in the past, I don’t remember why I added it. After removing\\from that list, the problem was gone. Sorry for stealing your time with this, and thanks for the patient answers nonetheless!Did you change the syntax highlighting color for keywords? As of the default settings,
\\would be colored red-brown. If you didn't change that, the grey color of\\may be a hint that something is going on.Additionally, please download the portable version (does not need installation and does not interact with the settings of your installed version) and check if you can reproduce the problem there: https://sourceforge.net/projects/texstudio/files/texstudio/TeXstudio%202.11.2/
See my comment to Jan ... But just for completeness’ sake: I don’t remember if I changed the color, but it looks like I did. With the portable version, I can’t reproduce the problem.
fixed