Test VCL message

Testing message to VCL Forum

Just testing sourcecode formatting:

Inline

Some text with Listbox1.Add('Hello World'); in it

Whole Line

TMyObject = class(TObject)

Block

procedure TStateMachine<TState, TTrigger>.TransitionToState
  (const AState: TState; AFirstTime: boolean);
begin
  if not Active then
    raise EStateMachineException.Create('StateMachine not active');

  if not FStates.ContainsKey(AState) then
    raise EUnknownState.Create('Unable to find Configured State');

  // only exit if not the first transition to initial state
  if not AFirstTime then
    CurrentState.Exit;

  FCurrentState := AState;

  CurrentState.Enter;
end;

Update: Oooh, pretty. Should I write a FAQ entry?

Yes please! and my post needs to be 20 characters …

@Malcolm you won’t have permissions for the FAQ category so just do it in the site feeback category and we’ll move it after.

1 Like

OK, I just had a go at it. Let me know if you think it should include anything else.

You could probably also mention for blocks you can specify a language after the 3 backticks

```delphi

or

```javascript

The list of supported languages for syntax highlighting is

delphi, pascal, bash, cs, cpp, css, coffeescript, diff, xml, http, ini, json, java, javascript, makefile, markdown, nginx, objectivec, ruby, perl, php, python, sql, csharp, vbscipt

1 Like

Good idea, just updated

Thanks, moved to the FAQ section.

1 Like