Enough to print the code in PDF

I am looking for a tool that will take the source directory and create one PDF file containing the source code, preferably with syntax highlighting.

I would like to read the PDF on my phone to get familiar with the code base or just see what I can learn by reading a lot of code. I will most often read Ruby.

I would prefer the tool to work on Linux. I do not mind paying for an instrument if it is especially good.

Any suggestions?

+4
source share
5 answers

PDF is not suitable for remelting. You might like the html based solution.

And when reading existing code, the line model does not fit. You need to go from one file to another. A history hypertext model probably works best on the limited screen space of the phone. It should borrow some features of small IDEs (transition to senders, developers).

For user interface take a look at clamato

+1
source

You can destroy yourself Prawn and Ultraviolet .

+3
source

GNU source-highlight supports many languages โ€‹โ€‹and can, in particular, output LaTeX, which can be converted to pdf.

+1
source

The SciTE editor can export the current edited file (with syntax highlighting) to PDF (and HTML, RTF, LaTeX and XML).

Alas, he does not have the ability to batch convert, but someone from IIRC made a batch tool from this code base.

0
source

I understand that it is very late, but I wanted to do the same, except that I wanted it for my tablet, which is a Galaxy Note 10.1 with a Wacom digitizer, which I can use to comment on the code. I found that one good solution is to use Doxygen to create a PDF file that will contain hyperlinks and whatever you want in the PDF file. For my use case, I would pair it with EzPDF on Android to annotate the code. It was also for learning a new code base. In the end, I did not use the generated PDF file, but was quite useful.

0
source

Source: https://habr.com/ru/post/1304686/


All Articles