Closed
Description
When I need to quickly switch between two blocks of code, I add in this construct to speed up switching:
//*
block1
/*/
block2
// */
which comments out block 2 and leaves block 1 uncommented. Then, I just have to delete the slash at the start to simultaneously uncomment block 2, and comment block 1. However, if I comment out block 2, the IDE highlights both blocks as though they're not commented.
Activity
per1234 commentedon Jul 6, 2017
Which version of the Arduino IDE are you using?
Which operating system?
I can't reproduce this on Arduino IDE 1.8.3 with Windows 7 64 bit:

sullivan-wenger commentedon Jul 6, 2017
My operating system is Ubuntu 16.04, 64 bit.
I can't find the version, but I know it's the one I got with Ubuntu's
sudo apt install arduino
. I've found something on it that says 1.0.5, but I don't know if that's what it is.Also, rereading my bug report, I'm realizing I don't like how I described the issue. Let me try again:
This code:
is just fine. But this code:
has a problem.
per1234 commentedon Jul 7, 2017
Unfortunately
sudo apt install arduino
installs a very outdated and possibly non-standard version of the Arduino IDE (see #2703).As you can see from the screenshot I posted above, comment highlighting is working as you would like in Arduino IDE 1.8.3. Try installing the latest version downloaded from https://www.arduino.cc/en/Main/Software and let me know if it solves this issue for you. I think you'll find there has been a lot of work done on the IDE since 1.0.5!
per1234 commentedon Aug 3, 2017
@sullivan-wenger did you try Arduino IDE 1.8.3 yet? If so, did it solve the issue?
per1234 commentedon Aug 22, 2017
Closing as invalid due to lack of a response.