wiki:CiteCodeMacro

Cite code in wiki pages and tickets

Description

CiteCode macro

With this macro, you can cite code from repositories in wiki pages and tickets.

The following example cites line 10 through 24 of revision 3 of trunk/hello.py from repo1 repository:

[[CiteCode(/repo1/trunk/hello.py?rev=3#L10-24)]]

See also: IncludeMacro

Create a ticket from the repository browser

You can create a ticket by double-clicking a line number in the repository browser. The location is cited in the description.

Bugs/Feature Requests

Existing bugs and feature requests for CiteCodeMacro are here.

If you have any issues, create a new ticket.

defect

3 / 3

task

1 / 1

Download

Download the zipped source from here.

Source

You can check out CiteCodeMacro from here using Subversion, or browse the source with Trac.

Installation

General instructions on installing Trac plugins can be found on the TracPlugins page.

Recent Changes

16550 by rjollos on 2017-04-17 21:23:42
TracCiteCode 0.3.5: Replace use of Context, removed in Trac 1.3.1

Fixes #13155.

16422 by rjollos on 2017-03-30 07:24:23
TracCiteCode 0.3.4: Conform to PEP8
16421 by rjollos on 2017-03-30 07:16:52
TracCiteCode 0.3.4: Don't close repository in macro

Fixes #13132.

(more)

Author/Contributors

Author: tkob-trac
Maintainer: tkob-trac
Contributors:

Last modified 18 months ago Last modified on Jun 26, 2016, 8:38:38 AM