Generate PDF or HTML of source

Anonymouse zorael at gmail.com
Sun Mar 16 16:26:55 UTC 2025


I want to generate PDFs of the individual source files of my 
project. Preferably with syntax highlighting, but if pressed I 
could live without it for this particular case. I would like line 
numbers though.

HTML is fine too as I could just print them to PDF.

`dub build -b docs` and `ddox` and `adrdox` etc can all generate 
API summary documentation, but I have a need for the source files 
themselves.

So far the best I've managed is to browse to the pages for the 
source files on GitHub and print those to PDF. It works, but you 
get the top of the page with the menu etc included, and it's put 
simply a pain to manually do when you have 75 source files.

Is there any elegant solution I'm missing?


More information about the Digitalmars-d-learn mailing list