Creating own language highlighting
See original GitHub issueI’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:
- Created 6 years ago
- Reactions:1
- Comments:10 (10 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@LeaVerou Yes it’s already what it does. I’ll take that as a yes. ^^ @eisbehr- Feel free to submit a PR, then!
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.