fukatani / rujaion

Rust / C++ / Python IDE for programming athlete
MIT License
64 stars 4 forks source link

Highlight comment blocks. #31

Open fukatani opened 5 years ago

fukatani commented 5 years ago

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

KristoferSoler commented 5 years ago

On it my dude! :muscle:

I will try :rofl:

Nevermind, It's complicated to me right now. Sorry. :man_facepalming:

fukatani commented 5 years ago

Thanks! :smile: 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 commented 5 years ago

Okay, I will give a try xD Wish me luck