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

Prints in Black and White only #31

Open
beartas opened this issue Mar 1, 2019 · 5 comments
Open

Prints in Black and White only #31

beartas opened this issue Mar 1, 2019 · 5 comments

Comments

@beartas
Copy link

beartas commented Mar 1, 2019

I have tried Chrome and Opera but cannot seem to get PrintCode to print in colour. It prints perfectly but only in Black & White so we lose all the syntax highlighting.
screenshot_2

@mouse07410
Copy link

mouse07410 commented Jun 19, 2019

Same problem here, except that I tried with Safari. Does this extension actually do any syntax highlighting? Or can it pick the highlighting from other language extensions (e.g., Rust, Haskell)?

Correction

Haskell source files are printed OK - with the appropriate syntax highlighting. Rust source files are not syntax-highlighted.

Help syntax-highlighting for Rust files would be appreciated!

@Elyx0
Copy link

Elyx0 commented May 27, 2021

Trying to do so for solidity as well if any tips

@xigrug
Copy link

xigrug commented Jul 21, 2021

I have the same question for Chrome to print fortran code.

@janilahti
Copy link

PrintCode uses CodeMirror to render files for printing. PrintCode's settings for particular file types are determined here: src/content.js, lines 10-26.

Not all the possible file types get any special coloring, so you may feel free to enhance the plugin within the limits of CodeMirror.

It seems @nobuhito is nowadays busy with some other projects along with vscode evolving fast, so we may need to take actions if PrintCode plugin is still deemed useful and worth of continued development. The last release of PrintCode was made in 2018, and in 2019 came for example this new plugin (haven't tried it yet): github.com/PeterWone/vsc-print.

@mdarif
Copy link

mdarif commented Oct 22, 2022

Same for JavaScript files, it gives the colour coding for .js extensions but not for .jsxfiles and even it's not consistent behaviour across, have checked in other VS Code Project it's not working even for .js files.

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

No branches or pull requests

6 participants