Modify ↓
Opened 19 years ago
Closed 16 years ago
#460 closed enhancement (fixed)
wiki macro for quoting range of lines of source file
Reported by: | anonymous | Owned by: | anybody |
---|---|---|---|
Priority: | normal | Component: | Request-a-Hack |
Severity: | normal | Keywords: | wiki quote source |
Cc: | Filipe Correia | Trac Release: | 0.9 |
Description
I'd like to see a way to quote on a wiki page ranges of source code (using the nice source browser rendering to show line numbers etc). The macro would need to support TracLink-style reference to specific source file, specific version, specific line or range of lines or perhaps even multiple ranges of lines (non-neighboring ranges would create abbreviation line in quote block like "...").
This sort of thing would make implementation discussion on a wiki page much easier! :)
Attachments (0)
Change History (3)
comment:1 Changed 17 years ago by
comment:2 Changed 16 years ago by
Cc: | Filipe Correia added; anonymous removed |
---|
comment:3 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Take a look at IncludeSourcePartialPlugin. It doesn't support non-neighboring ranges (although it could with a bit of work), but otherwise seems to be what you want.
Note: See
TracTickets for help on using
tickets.
It's already possible to highlight lines in 0.11 -- do you want to extract the lines or is highlighting them enough?
http://trac.edgewall.org/browser/trunk/setup.py?marks=3-9,15#L1