Opened 13 years ago
Closed 13 years ago
#3029 closed Patches (fixed)
quickbook - import Python code snippets
Reported by: | 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)
Change History (6)
by , 13 years ago
Attachment: | quickbook.patch added |
---|
comment:2 by , 13 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
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 , 13 years ago
Checking for '.py' is definitely better. However, unless I missing something, [53018] still checks for 'py'.
comment:4 by , 13 years ago
I see that it has been changed in a later revision. Sorry for the noise. Thanks.
comment:5 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
No problem. Thanks for the patch. I changed a few other things, but they all concerned problems with the existing code.
patch