|
| |
| Navigation |
Synopsis Markup for a code listing.
Syntax
Description A listing shows Rascal code without executing it. A listing can be of the following kinds:
Examples The input:
<listing>x = 3;</listing>
will produce: x = 3;The input: <listing demo/Hello.rsc>
will produce. module demo::basic::Hello
import IO;
public void hello() {
println("Hello world, this is my first Rascal program");
}
Compared with the source file, all lines before //START have been removed.
Pitfalls Do not make the lines in a listing too long since they will not be wrapped.
Not more than 60 characters is a rule of thumb.
|