Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Notepad++ export to pdf or image and keep all formatting and colouring?

Tags:

notepad++

I have a notepad++ file that is formatted with spacings etc... as well as a certain background/text colour I want to keep. How do I export that file to either an image or a pdf that will keep the spacings and the background/text colour?

like image 467
Dmytro Lysak Avatar asked Jul 08 '16 02:07

Dmytro Lysak


2 Answers

Use print functionality to do that. To get background color go to Settings -> Preferences -> Printing and check WYSIWYG. Also you need to have pdf or image printer. Google for one of them for ex. "pdf printer windows 10".

Edit: To make whole page color as background first remove text from header and footer in Settings->Preferences->Printing it will remove header and footer from print. Second use pdf/image printer options to scale and set position for your document. If there is no options for printer (for ex. win 10 pdf printer ) you can reprint pdf again using pdf reader scaling on print setting. But for pdf if you not set page color as background color you will always see a little white borders.

like image 162
Logman Avatar answered Oct 02 '22 21:10

Logman


If you want to export it so that you can use it in a Word Document or something, I would suggest to copy-paste it in the Carbon app. https://carbon.now.sh You can choose among the theme dropdown to select a background/text colour or you can create your own theme by clicking + Create in the top option. If you wish to show the line numbers, go to Settings > Window and check line numbers You can then choose to export it by clicking the "export" button and click the PNG option in the Export as section.

like image 32
Knighto05 Avatar answered Oct 02 '22 22:10

Knighto05