Added by Crowd Administrator, last edited by Eugene Myazin on Jul 09, 2006  (view change)

Labels

 
(None)

still using old version of code macro, as the new version has a few bad bugs in it still. They have been reported to macro author.

Delphi PHP C/C++
for i:=0 to 5 do
begin
     {* the code *}
end;
for($i=0; $i<=5; $i++) {
     /* the code */
}
for(int i=0; i<=5; i++) {
     /* the code */
}

New Code Macro test

http://confluence.atlassian.com/display/CONFEXT/New+Code+Macro

Parameter Required Description
language no (default param) the language to highlight, see below for support
collapse no "true" will collapse the code fragment by default
linenumbers no "true" will show line numbers in the left gutter (default: false)
firstline no if showing line numbers, where to start numbering from (default 1)
controls no "true" will show controls at the top of the code fragment to copy and print (default: false)
macro body yes the code to format