Opened 13 years ago

Closed 13 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:

Description

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

#[id

"""` A multi-line
markup."""

#` A single-line markup.

#]

The patch also enables to import pure C code snippets:

/*[id */
 ...
/*]*/

I have been already using it in my project (http://www.jagpdf.com/doc) 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@… 13 years ago.
patch

Download all attachments as: .zip

Change History (6)

by jgresula@…, 13 years ago

Attachment: quickbook.patch added

patch

comment:1 by anonymous, 13 years ago

So cool! Definitely!

comment:2 by Daniel James, 13 years ago

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 by anonymous, 13 years ago

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

comment:4 by jgresula@…, 13 years ago

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

comment:5 by Daniel James, 13 years ago

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.

Note: See TracTickets for help on using tickets.