Skip to content
This repository has been archived by the owner on Nov 4, 2019. It is now read-only.

Printing hack #39

Closed
wants to merge 5 commits into from
Closed

Printing hack #39

wants to merge 5 commits into from

Conversation

epatel
Copy link
Contributor

@epatel epatel commented Jan 23, 2011

Hi Rasmus,

Here is a cleaned up version of the printing hack I made. I have tried to clean up according to your suggestions, the feeding of the file content by stdin I skipped as that will need better knowledge of original content type and stating that to enscript through the command line parameters.

Cheers,
Edward

…dded a config variable for color usage: printing/useColors.

This is a hack to be used until someone feels comfortable to make the real printing that will use the built in highlighting.
@rsms
Copy link
Owner

rsms commented Jan 29, 2011

After trying this out I realized what actually happened — no "really print? ok, how..." dialog and an implicit but visible postscript-to-pdf conversion. I think this might better off as a js plugin rather than to replace the OS standard printing. What should be done is rather to setup the to-be-printed view with a bright color scheme and suiting font size, hooking into the standard printing system.

@epatel
Copy link
Contributor Author

epatel commented Jan 29, 2011

Sure, and as I have been writing, this is a 10 line hack that will give "some" usable output while we wait for the real implementation.

Yes, it will format the sources and output it as postscript that is shown in Preview which then can be printed. Personally I like enscript for printing and often use that than many editors own print feature. But a native implementation is certainly better than this hack :) As for js plugins I'm not the guy to help you there. Need to learn some js first :)

Cheer!
Edward

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants