nobuhito / vscode.printcode

PrintCode added printing function to VS Code!!
https://marketplace.visualstudio.com/items?itemName=nobuhito.printcode
MIT License
73 stars 26 forks source link

Color syntax between differents languages #17

Closed glcraft closed 5 years ago

glcraft commented 6 years ago

The color syntax in some languages isn't properly printed, even not in some case. In C++, there are only comments and number. In markdown, code blocks look like comments. Then i installed a extension which change color of parenthesis each level of them.

So, is it possible to get the "VS Theme", kind of ?

EDIT: I just looked the source, it seems that the extension uses codemirror to color the text. I'm not an expert of vscode API but I'm sure there's a way to retrieve color data from the document and build your own HTML from these values.

nobuhito commented 5 years ago

I also wanted to implement that idea, but it was difficult and gave up.