wiki:CodeExampleMacro

Version 1 (modified by nuald, 5 years ago) (diff)

New hack CodeExampleMacro, created by nuald

CodeExample

Description

The Trac plugin for code examples colouring. It support three types of examples - a simple, a correct and an incorrect.

Bugs/Feature Requests

Existing bugs and feature requests for CodeExampleMacro are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

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

Example

The simple example:

{{{
#!CodeExample
#!python
def main():
    pass
}}}

The incorrect example:

{{{
#!BadCodeExample
#!cpp
void main() {
    return -1;
}
}}}

The correct example:

{{{
#!GoodCodeExample
#!java
public void isCorrect() { throw new NotImplementedException(); }
}}}

Recent Changes

[11775] by rjollos on 2012-07-25 09:01:47
Part of [11766].
[11766] by rjollos on 2012-07-24 06:33:37
Renamed 0.11 directory to trunk.
[10843] by rjollos on 2011-10-27 08:17:57
Adding configuration file that results in svn revision info being added to the egg file.

Author/Contributors

Author: nuald
Contributors:

Attachments (7)

Download all attachments as: .zip