Skip to content
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

Add syntax highlighting of constants/macros #1785

Closed
3 tasks done
BlynkGO opened this issue Dec 25, 2022 · 1 comment
Closed
3 tasks done

Add syntax highlighting of constants/macros #1785

BlynkGO opened this issue Dec 25, 2022 · 1 comment
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@BlynkGO
Copy link

BlynkGO commented Dec 25, 2022

Describe the request

In a library, can define any keyword as "LITERAL1" keyword.

Arduino IDE1.8.x can change "LITERAL1" keyword's color as the following.

image

However, Arduino IDE2.0.x can't display "LITERAL1" keyword's color.

image

Request, the ArduinoIDE2 can show LITERAL1 keyword's color too.

Thank you.

Describe the current behavior

the ArduinoIDE2 , the current behavior can't show LITERAL1 keyword's color.

image

Arduino IDE version

2.0.3

Operating system

Windows, Linux, macOS

Operating system version

Windows10

Additional context

No response

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest nightly build
  • My request contains all necessary details
@per1234
Copy link
Contributor

per1234 commented Dec 27, 2022

Hi @BlynkGO. Thanks for taking the time to submit an issue.

I see we have another report that covers the same subject at #380.

You should note that the crude system of library maintainers manually definining keywords from Arduino IDE 1.x will not be implemented in Arduino IDE 2.x, so there will never be support for LITERAL1 specifically. But perhaps the intelligent automatic syntax highlighting system used by Arduino IDE 2.x can be refined to better handle these objects.

It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2022
@per1234 per1234 added conclusion: declined Will not be worked on topic: code Related to content of the project itself labels Dec 27, 2022
@per1234 per1234 added conclusion: duplicate Has already been submitted and removed conclusion: declined Will not be worked on labels Jun 18, 2023
@per1234 per1234 changed the title [Feature Request] Request the ArduinoIDE2 can show LITERAL1 keyword's color. Add syntax highlighting of constants/macros Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

2 participants