On Sunday, 16 March 2025 at 16:26:55 UTC, Anonymouse wrote:
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?

`dub run dscanner -- --highlight source/app.d`
or
`highlight -o html -i source/app.d -o test.html`

Andrea

Reply via email to