question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Creating own language highlighting

See original GitHub issue

I’ve created a highlighting for arduino language. But I have problems with the operators, like =, &&, ! == and so on. I don’t know how to do this correctly and I found no documentation for creating new languages. I hope I did it right so far.

I’ve created an working example recreating my problems.

Later on, is there a way to add this language to the repository, or is this not wished?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
Golmotecommented, Sep 11, 2017

@LeaVerou Yes it’s already what it does. I’ll take that as a yes. ^^ @eisbehr- Feel free to submit a PR, then!

1reaction
Golmotecommented, Sep 7, 2017

Hi! Could you be more specific about the issue you have with the operators?

You can find documentation on language creation on this page.

Regarding the addition of this to the official repo, I’m not sure “Arduino” can be considered as a language. If I understand correctly, this is just C++.

That being said, I think it’s great that you’re creating your own language extension to have it highlighted as you want it to be.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Syntax Highlight Guide | Visual Studio Code Extension API
Syntax highlighting determines the color and style of source code displayed in the Visual Studio Code editor. It is responsible for colorizing keywords...
Read more >
Language Definition Guide — highlight.js 11.7.0 documentation
Highlighting overview​​ Programming language code consists of parts with different rules of parsing: keywords like for or if don't make sense inside strings, ......
Read more >
User Defined Languages | Notepad++ User Manual
User Defined Languages. What are User Defined Languages. Notepad++ comes prepackaged with many Language lexers, which apply syntax highlighting to source ...
Read more >
How to create a simple custom language colorization to VS ...
Show activity on this post. I provide a more useful example for a log file highlighter. It colors numbers, hints, warnings and errors...
Read more >
How to create an editor with syntax highlighting for your ...
Tutorial on creating an editor with syntax highlighting for your language (like your DSL). It is based on an ANTLR lexer. The implementation...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found