-
Notifications
You must be signed in to change notification settings - Fork 68
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
[C++] Incorrect text syntax color on generated image #13
Comments
Thanks for the report, What theme are you using? is this the default c++ language definition? I thought it was default theme, but when I select the default theme, the colors match your generated image even in my editor. |
I'm using the default dark theme on Windows 10. Yes, I didn't use any custom definition (I don't even know how to declare it yet). I also installed Polacode after this weird bug, seems to be affected as well. Did you try using my code? After trying today, simple codes are now affected by this bug as well: My I'm using MinGW C++ compiler with C/C++ extensions installed if that helps, I will try cleaning my extensions folder or even deleting the entire data folder to see if the bug still exist. |
What's interesting is that when using the default vs code settings my token colors are slightly different. Even when using your cpp file. Variables are white not blue like yours, and look the same in CodeSnap. I'll investigate further when I have some free time |
Maybe you don't have any C++ compiler installed or don't have C/C++ extensions installed? |
What OS are you on? Looks like Windows 10 but just want to be sure |
I don't have the c++ compiler but I do have the extensions. I'll install the compiler when I'm at my pc later |
Yes, Windows 10 but LTSC edition. Doesn't make any difference to Windows 10 Pro/Home in this case. |
In case you don't want to install C++ compiler (because you don't need it anyway), you can just use Nuwen's MinGW distro. Extract it somewhere like MinGW will now be recognized by VS Code without the need of installing it. Just delete |
I'm now successfully reproducing the issue. The colors are being changed by |
I'm fine with it actually, no need to push yourself. I'll try to make a request (or search for the same issue) on Polacode repo and see if it can get fixed, or maybe on VS Code repo itself. |
I'm using an extension named Better Comments which install counts are about a million user. Better Comments link for vs-code : https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments |
VS Code v1.39.2
CodeSnap v1.0.15
As you can see, only variable
angka
is colored as light blue. Other variables such askol
,bar
,baris
,kolom
, etc. are colored as white on the generated image.cout
andcin
are also colored as white.Original code: https://pastebin.com/tuLaWuEP
Simple C++ code (without 2D array) works fine, no color issue so far.
The text was updated successfully, but these errors were encountered: