Code Macro

The words bracketed with {code:java} and {/code} are considered as java code. They will be displayed in the default color of Eclipse.
The words bracketed with {code:cs} and {/code} are considered as C# code. They will be displayed in the default color of VisualC#.NET.
The words bracketed with {code} and {/code} are considered as a kind of code. They will be displayed in the general-purpose color.

When you type:

Java code
{code:java}
package helloworld;
public class Hello {
public String sayHello {
return "Hello";
}
}
{/code}

C# code
{code:cs}
using System;
public class Hello {
public String sayHello {
return "Hello";
}
}
{/code}

It appears as: