generally, all bold words should be lowercase.
PHP Code:
procedure
function
begin
end
var
repeat
until
while
to
do
for
goto
label
string
type
record
etc.
and all identifiers should be capitalized
PHP Code:
Integer
Boolean
Varient
including function/procedure names
PHP Code:
function ThisIsANewFunction: Boolean;
procedure GoodMorning(Yes: Boolean; Response: string);
And the scripting standards above indentation wise are a bit off.
NO NO NO!
PHP Code:
function New: Boolean;
var
I: Integer;
begin
Writeln('New')
Writeln('New Again!');
For i := 0 to 10 do
Begin
Writeln(IntToStr(i));
end;
Result := True;
end;
YES YES YES!
PHP Code:
function New: Boolean;
var
I: Integer;
begin
Writeln('New');
Writeln('New Again!');
For i := 0 to 10 do
begin
Writeln(IntToStr(i));
end;
Result := True;
end;
Personally, I capitalize the bold functions which are "Openers", E.G Procedure, Function, Begin, Repeat etc. and lowercase the "Closers" E.G. until, end etc.
A strange way to do it yes, i know