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

Syntax coloring in lambdas #2012

Open
pedjas opened this issue Dec 10, 2022 · 3 comments · May be fixed by esphome/dashboard#687
Open

Syntax coloring in lambdas #2012

pedjas opened this issue Dec 10, 2022 · 3 comments · May be fixed by esphome/dashboard#687

Comments

@pedjas
Copy link

pedjas commented Dec 10, 2022

Describe the problem you have/What new integration you would like

Code is lambdas should be syntax colored.

Please describe your use case for this integration and alternatives you've tried:

It is not rare situation when user has to use lambda. ESPHome editor does not do syntax coloring in lambda so content is not easy to follow, and some typing errors are hard to notice.

Coloring would really help.

Additional context

@bkaufx
Copy link

bkaufx commented Dec 11, 2022

Weird thing is it works in the VS Code plugin and I swear it used to work in the dashboard too.

@clowrey
Copy link

clowrey commented Nov 8, 2024

I would love to see syntax highlighting for the lambdas too!
Here is with the current ESPhome dashboard v2024.10.3:
image

With the current VSCode ESPhome extension v2023.9.0:
image

@swoboda1337
Copy link

I would love to see syntax highlighting for the lambdas too! Here is with the current ESPhome dashboard v2024.10.3:

I have a PR ready to go for this, just has to get merged: esphome/dashboard#687

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants