Skip to content

Comment highlighting #6316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sullivan-wenger opened this issue May 23, 2017 · 5 comments
Closed

Comment highlighting #6316

sullivan-wenger opened this issue May 23, 2017 · 5 comments
Labels
Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug Waiting for feedback More information must be provided before we can proceed

Comments

@sullivan-wenger
Copy link

sullivan-wenger commented May 23, 2017

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.

@per1234
Copy link
Collaborator

per1234 commented 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:
clipboard01

@per1234 per1234 added the Waiting for feedback More information must be provided before we can proceed label Jul 6, 2017
@sullivan-wenger
Copy link
Author

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:

/*
block1 //highlighted as a comment (correct)
/*/
block2 //not highlighted as a comment (correct)
// */

is just fine. But this code:

//*
block1 //not highlighted as a comment (correct)
/*/
block2 //not highlighted as a comment (INCORRECT- should be a comment)
// */

has a problem.

@per1234
Copy link
Collaborator

per1234 commented 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
Copy link
Collaborator

per1234 commented Aug 3, 2017

@sullivan-wenger did you try Arduino IDE 1.8.3 yet? If so, did it solve the issue?

@per1234
Copy link
Collaborator

per1234 commented Aug 22, 2017

Closing as invalid due to lack of a response.

@per1234 per1234 closed this as completed Aug 22, 2017
@per1234 per1234 added the Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug label Aug 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug Waiting for feedback More information must be provided before we can proceed
Projects
None yet
Development

No branches or pull requests

2 participants