Changes between Initial Version and Version 1 of CodeExampleMacro


Ignore:
Timestamp:
May 22, 2009, 6:39:10 AM (15 years ago)
Author:
Alexander Slesarev
Comment:

New hack CodeExampleMacro, created by nuald

Legend:

Unmodified
Added
Removed
Modified
  • CodeExampleMacro

    v1 v1  
     1= CodeExample =
     2
     3== Description ==
     4
     5The Trac plugin for code examples colouring. It support three types of examples - a simple, a correct and an incorrect.
     6
     7== Bugs/Feature Requests ==
     8
     9Existing bugs and feature requests for CodeExampleMacro are
     10[report:9?COMPONENT=CodeExampleMacro here].
     11
     12If you have any issues, create a
     13[http://trac-hacks.org/newticket?component=CodeExampleMacro&owner=nuald new ticket].
     14
     15== Download ==
     16
     17Download the zipped source from [download:codeexamplemacro here].
     18
     19== Source ==
     20
     21You can check out CodeExampleMacro from [http://trac-hacks.org/svn/codeexamplemacro here] using Subversion, or [source:codeexamplemacro browse the source] with Trac.
     22
     23== Example ==
     24
     25The simple example:
     26{{{
     27{{{
     28#!CodeExample
     29#!python
     30def main():
     31    pass
     32}}}
     33}}}
     34
     35The incorrect example:
     36{{{
     37{{{
     38#!BadCodeExample
     39#!cpp
     40void main() {
     41    return -1;
     42}
     43}}}
     44}}}
     45
     46The correct example:
     47{{{
     48{{{
     49#!GoodCodeExample
     50#!java
     51public void isCorrect() { throw new NotImplementedException(); }
     52}}}
     53}}}
     54
     55== Recent Changes ==
     56
     57[[ChangeLog(codeexamplemacro, 3)]]
     58
     59== Author/Contributors ==
     60
     61'''Author:''' [wiki:nuald] [[BR]]
     62'''Contributors:'''