Skip to content

Comment highlighting #6316

Closed
Closed
@sullivan-wenger

Description

@sullivan-wenger

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

per1234 commented on Jul 6, 2017

@per1234
Collaborator

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

sullivan-wenger

sullivan-wenger commented on Jul 6, 2017

@sullivan-wenger
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

per1234 commented on Jul 7, 2017

@per1234
Collaborator

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

per1234 commented on Aug 3, 2017

@per1234
Collaborator

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

per1234

per1234 commented on Aug 22, 2017

@per1234
Collaborator

Closing as invalid due to lack of a response.

added
Type: InvalidOff topic for this repository, or a bug report determined to not actually represent a bug
on Aug 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: InvalidOff topic for this repository, or a bug report determined to not actually represent a bugWaiting for feedbackMore information must be provided before we can proceed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Comment highlighting · Issue #6316 · arduino/Arduino