Opened 11 years ago

Closed 8 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: FilipeCorreia Trac Release: 0.9


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 9 years ago by thatch

It's already possible to highlight lines in 0.11 -- do you want to extract the lines or is highlighting them enough?,15#L1

comment:2 Changed 8 years ago by anonymous

  • Cc FilipeCorreia added; anonymous removed

comment:3 Changed 8 years ago by chrisheller

  • Resolution set to fixed
  • Status changed from new to 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.

Add Comment

Modify Ticket

as closed The owner will remain anybody.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.