Opened 8 years ago

Closed 8 years ago

#3029 closed Patches (fixed)

quickbook - import Python code snippets

Reported by: jgresula@… Owned by: Daniel James
Milestone: Boost 1.40.0 Component: quickbook
Version: Boost Development Trunk Severity: Not Applicable
Keywords: Cc:


The attached patch allows to import Python code snippets. The syntax is:


"""` A multi-line

#` A single-line markup.


The patch also enables to import pure C code snippets:

/*[id */

I have been already using it in my project ( for some time now without problems.

If there is an interest in this functionality, I'm willing to help with anything related - tests, code polishing, etc.

Attachments (1)

quickbook.patch (6.9 KB) - added by jgresula@… 8 years ago.

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by jgresula@…

Attachment: quickbook.patch added


comment:1 Changed 8 years ago by anonymous

So cool! Definitely!

comment:2 Changed 8 years ago by Daniel James

Owner: changed from Joel de Guzman to Daniel James
Status: newassigned

Applied in [53018]. I've also made a few changes, the only significant one is that it now checks for files ending with '.py' instead of 'py'. I'll change it back if that isn't okay.

comment:3 Changed 8 years ago by anonymous

Checking for '.py' is definitely better. However, unless I missing something, [53018] still checks for 'py'.

comment:4 Changed 8 years ago by jgresula@…

I see that it has been changed in a later revision. Sorry for the noise. Thanks.

comment:5 Changed 8 years ago by Daniel James

Resolution: fixed
Status: assignedclosed

No problem. Thanks for the patch. I changed a few other things, but they all concerned problems with the existing code.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Daniel James.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.