wiki:CiteCodeMacro

Cite code in wiki pages and tickets

Notice: This macro is deprecated. Please use IncludeMacro instead.

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, WikiProcessors (in particular the #python processor)

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

17708 by rjollos on 2020-04-29 19:50:14
TracCiteCode 0.3.6: Require Trac 1.2

Remove compatibility code.

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
(more)

Author/Contributors

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

Last modified 5 years ago Last modified on Apr 29, 2020, 7:37:13 PM