-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Creating own language highlighting #1182
Comments
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. |
Hello @Golmote Basically you're right, it's But back to the problem: if you take a look into my example, you see in the result on the very top, that things like |
I made you a shorter example, where you should see the problem easily. |
That's because you're loading two themes at the same time. Remove |
Ha. Great. 👍 Typically user problem. 😉 So you don't want a PR/to add this to prism, correct? Then I'm hosting it by myself. |
@LeaVerou Do you have an opinion on this? Should we add support for this Arduino specific C++? |
@Golmote it could inherit from C++ and just redefine the parts that are different. |
@LeaVerou Yes it's already what it does. I'll take that as a yes. ^^ |
Will do! 😉 |
Done. #1184 |
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?
The text was updated successfully, but these errors were encountered: