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

Highlight comment blocks. #31

Open
fukatani opened this issue Oct 8, 2019 · 3 comments
Open

Highlight comment blocks. #31

fukatani opened this issue Oct 8, 2019 · 3 comments
Assignees

Comments

@fukatani
Copy link
Owner

fukatani commented Oct 8, 2019

Currently, only line comment is highlighted.
We want to support highlighting comment blocks.
test

@KristoferSoler
Copy link

KristoferSoler commented Oct 8, 2019

On it my dude! 💪

I will try 🤣

Nevermind, It's complicated to me right now. Sorry. 🤦‍♂️

@fukatani
Copy link
Owner Author

fukatani commented Oct 9, 2019

Thanks! 😄
I assigned you this issue.

We have to custormize syntax.py.

This page may help you.
https://doc.qt.io/qt-5/qtwidgets-richtext-syntaxhighlighter-example.html
Descriotion about multiline comment exists.

Note:

/* comment */
int a = 0;  // this line is not comment block.
/* other comment */

In this case, int a = 0 should not be highlighted.

Please feel free to ask any questions!

@KristoferSoler
Copy link

Okay, I will give a try xD Wish me luck

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

No branches or pull requests

2 participants