To write a piece of Pascal code, use triple backquotes and add “delphi” right at the 1st line, like this:
```delphi
var
S: String;
procedure Foo;
begin
S := 'foo';
end;
```
It will render like this:
var
S: String;
procedure Foo;
begin
S := 'foo';
end;
See Codeblocks in Discourse - Community HowTo's & Feedback - CyberArk Commons , highlight.js demo . I know, writing “pascal
” instead of “delphi
” would be cleaner – I’ll see how to enable it in Discourse, for now “delphi
” works