2010-09-29 19:08:31 +02:00
|
|
|
\installprettytype[PAS][PAS]
|
|
|
|
\setupcolors[state=start]
|
|
|
|
\setuptyping[option=color]
|
|
|
|
\definetyping[PAS][option=PAS, escape=yes, tab=4, numbering=line]
|
|
|
|
\setuplinenumbering[location=text]
|
|
|
|
|
|
|
|
\starttext
|
|
|
|
\startPAS
|
2010-09-30 14:06:14 +02:00
|
|
|
normal { Comment } normal
|
|
|
|
normal {$R- compiler directive} normal
|
2010-09-29 19:08:31 +02:00
|
|
|
procedure TForm1.Button1.Click(Sender: TObject);
|
|
|
|
var // Delphi Comment
|
2010-09-29 23:37:40 +02:00
|
|
|
Number, I, X: Integer;
|
2010-09-29 19:08:31 +02:00
|
|
|
begin
|
2010-09-29 23:37:40 +02:00
|
|
|
Number := 12345 * (2 + 9);
|
|
|
|
Caption := 'The number is ' + IntToStr(Number);
|
|
|
|
asm
|
|
|
|
MOV AX,1234h
|
|
|
|
MOV Number,AX
|
|
|
|
end;
|
|
|
|
X := 10;
|
2010-09-29 19:08:31 +02:00
|
|
|
end;
|
|
|
|
\stopPAS
|
2010-09-29 23:37:40 +02:00
|
|
|
|
|
|
|
\startPAS
|
2010-09-30 12:10:49 +02:00
|
|
|
My_Variable := _for;
|
2010-09-29 23:37:40 +02:00
|
|
|
45My_Variable := _Variable45;
|
2010-09-30 12:10:49 +02:00
|
|
|
normal asm green for end normal For END
|
|
|
|
normal aSM green foR eNd normal For END
|
|
|
|
&for asm green
|
|
|
|
end normal
|
|
|
|
{bold'bold}normal'blue
|
2010-09-30 14:55:44 +02:00
|
|
|
normal'blue{blue}blue'Normal'blue
|
2010-09-30 12:10:49 +02:00
|
|
|
asm green'gr{ee}n'{bold bold}green end
|
|
|
|
{asm bold end}
|
2010-09-30 14:55:44 +02:00
|
|
|
normal'blue'Normal'Blue'nOrmal'bLue'noRmal
|
2010-09-29 23:37:40 +02:00
|
|
|
\stopPAS
|
2010-09-29 19:08:31 +02:00
|
|
|
\stoptext
|