Re: Generate PDF or HTML of source

2025-03-17 Thread Andrea Fontana via Digitalmars-d-learn
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

Re: Generate PDF or HTML of source

2025-03-16 Thread Anonymouse via Digitalmars-d-learn
On Sunday, 16 March 2025 at 18:02:54 UTC, Adam D. Ruppe wrote: On Sunday, 16 March 2025 at 17:50:44 UTC, Anonymouse wrote: Lastly then, is there any CSS wizardry to be used to make it word-wrap? Yeah, I specifically disabled word wrap for code blocks because I prefer horizontal scrolling them

Re: Generate PDF or HTML of source

2025-03-16 Thread Adam D. Ruppe via Digitalmars-d-learn
On Sunday, 16 March 2025 at 17:50:44 UTC, Anonymouse wrote: Lastly then, is there any CSS wizardry to be used to make it word-wrap? Yeah, I specifically disabled word wrap for code blocks because I prefer horizontal scrolling them in a browser. Add this either to that same media print block,

Re: Generate PDF or HTML of source

2025-03-16 Thread Anonymouse via Digitalmars-d-learn
On Sunday, 16 March 2025 at 17:33:43 UTC, Adam D. Ruppe wrote: On Sunday, 16 March 2025 at 17:27:22 UTC, Anonymouse wrote: Is getting rid of the sidebar non-trivial? I get https://i.imgur.com/ropgZWj.png when printing to PDF. I never even considered someone would try to print it lol. The use

Re: Generate PDF or HTML of source

2025-03-16 Thread Adam D. Ruppe via Digitalmars-d-learn
On Sunday, 16 March 2025 at 17:27:22 UTC, Anonymouse wrote: Is getting rid of the sidebar non-trivial? I get https://i.imgur.com/ropgZWj.png when printing to PDF. I never even considered someone would try to print it lol. Should be easy enough to add some css like ``` @media print { #pag

Re: Generate PDF or HTML of source

2025-03-16 Thread Anonymouse via Digitalmars-d-learn
On Sunday, 16 March 2025 at 17:07:45 UTC, Adam D. Ruppe wrote: On Sunday, 16 March 2025 at 16:26:55 UTC, Anonymouse wrote: `adrdox` [...] but I have a need for the source files themselves. adrdox --help -u --genSource Generate annotated source use that -u thing and it spits

Re: Generate PDF or HTML of source

2025-03-16 Thread Adam D. Ruppe via Digitalmars-d-learn
On Sunday, 16 March 2025 at 16:26:55 UTC, Anonymouse wrote: `adrdox` [...] but I have a need for the source files themselves. adrdox --help -u --genSource Generate annotated source use that -u thing and it spits out source too with links everywhere just like you see at htt

Generate PDF or HTML of source

2025-03-16 Thread Anonymouse via Digitalmars-d-learn
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