= 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 [report:9?COMPONENT=CodeExampleMacro here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=CodeExampleMacro&owner=nuald new ticket]. == Download == Download the zipped source from [download:codeexamplemacro here]. == Source == You can check out CodeExampleMacro from [http://trac-hacks.org/svn/codeexamplemacro here] using Subversion, or [source:codeexamplemacro 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 == [[ChangeLog(codeexamplemacro, 3)]] == Author/Contributors == '''Author:''' [wiki:nuald] [[BR]] '''Contributors:'''