home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 May
/
Chip_2003-05_cd1.bin
/
servis
/
rkedit
/
rkEdit.exe
/
Templates
/
pascal.xml
< prev
next >
Wrap
Extensible Markup Language
|
2003-03-18
|
5KB
|
200 lines
<?xml version='1.0'?>
<?xml-stylesheet href="e:\templates.xsl" type="text/xsl"?>
<!DOCTYPE templates PUBLIC "-//Slavek Rydval//DTD rkEdit template V1.0//EN"
"templates.dtd">
<templates>
<head>
<templatename>Template for Object Pascal</templatename>
<highlightersystemname>Object Pascal</highlightersystemname>
</head>
<template shortcut="arrayd" name="array declaration (var)">
array[0..|] of ;
</template>
<template shortcut="arrayc" name="array declaration (const)">
array[0..|] of = ();
</template>
<template shortcut="cases" name="case statement">
case | of
: ;
: ;
end; {case}
</template>
<template shortcut="casee" name="case statement (with else)">
case | of
: ;
: ;
else ;
end;
</template>
<template shortcut="classf" name="class declaration (all parts)" inputdesc="Enter class' name:">
//--------------------Created at: %date% %time% --------- %input% --------
%input% = class(T|)
private
{private declarations}
protected
{protected declarations}
public
{public declarations}
published
{published}
end; {class %input%}
</template>
<template shortcut="classd" name="class declaration (no parts)" inputdesc="Enter class' name:">
//--------------------Created at: %date% %time% --------- %input% --------
T%input% = class(T|)
end; {class %input%}
</template>
<template shortcut="classc" name="class declaration (with Create/Destroy overrides)" inputdesc="Enter class' name:">
//--------------------Created at: %date% %time% --------- %input% --------
T%input% = class(T|)
private
{private declarations}
protected
{protected declarations}
public
{public declarations}
constructor Create; override;
destructor Destroy; override;
published
{published declarations}
end; {class %input%}
</template>
<template shortcut="fors" name="for (no begin/end)">
for | := to do
</template>
<template shortcut="forb" name="for statement">
for | := to do
begin {for}
end; {for}
</template>
<template shortcut="function" name="function declaration">
function |(): ;
begin {}
end; {}
</template>
<template shortcut="ifs" name="if (no begin/end)">
if | then
</template>
<template shortcut="ifb" name="if statement">
if | then
begin
end; {if}
</template>
<template shortcut="ife" name="if then (no begin/end) else (no begin/end)">
if | then
else
</template>
<template shortcut="ifeb" name="if then else">
if | then
begin
end else begin
end; {if/else}
</template>
<template shortcut="procedure" name="procedure declaration" inputdesc="Enter procedure's name:">
//--------------------Created at: %date% %time% --------- %input% --------
procedure %input%();
begin {%input%}
|
end; {%input%}
</template>
<template shortcut="trye" name="try except">
try
|
except
end; {trye}
</template>
<template shortcut="tryf" name="try finally">
try
|
finally
end; {tryf}
</template>
<template shortcut="tryfc" name="try finally (with Create/Free)">
|variable := typename.Create;
try
finally
variable.Free;
end; {tryf}
</template>
<template shortcut="whileb" name="while statement">
while | do
begin
end; {while}
</template>
<template shortcut="whiles" name="while (no begin)">
while | do
</template>
<template shortcut="withb" name="with statement">
with | do
begin
end; {with}
</template>
<template shortcut="withs" name="with (no begin)">
with | do
</template>
<template shortcut="k" name="Comment">
//-----------------------------------------------------------------------------
// |
//-----------------------------------------------------------------------------
</template>
<template shortcut="in" name="IntToStr">
IntToStr (|)
</template>
<template shortcut="s" name="ShowMessage">
ShowMessage ('|');
</template>
<template shortcut="b" name="begin end">
begin {}
|
end; {}
</template>
</templates>