Modify ↓
#6359 closed enhancement (fixed)
Box filled with code from repository
Reported by: | Adrian Fritz | Owned by: | Alexander Slesarev |
---|---|---|---|
Priority: | normal | Component: | CodeExampleMacro |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
Goal:
- administrate code from repository
- adhere to DRY (do not repeat yourself) guideline
How could it work:
- Box is filled-up with code gattered from SVN (or other) repository
- a path for such a file in the repository is given
- a regular expression indicates which to start getting
- parameter limits number of lines of code to get
{{{ #!CodeExamplePath #!python path=./browser/codeexamplemacro/0.11/codeexample-plugin-en/codeexample/code_example_processor.py regex="def expand_macro" lines=5 (or default until function ends) }}}
Attachments (0)
Change History (8)
comment:1 Changed 15 years ago by
Owner: | changed from Alexander Slesarev to anonymous |
---|---|
Status: | new → assigned |
comment:2 Changed 15 years ago by
Owner: | changed from anonymous to Alexander Slesarev |
---|---|
Status: | assigned → new |
comment:3 Changed 15 years ago by
Status: | new → assigned |
---|
comment:4 Changed 15 years ago by
comment:5 Changed 15 years ago by
No, at least I have to finish writing unit-tests for covering this new functionality. But if you want, you can test - it's stable enough.
comment:7 Changed 15 years ago by
See also #6624 for a suggestion of another way to include a similar feature.
Note: See
TracTickets for help on using
tickets.
Hi, Do you consider the changes in [7534] to be very stable, or does it need to be tested out a bit?