Tip: post Clarion code with syntax highlighting

The forum now highlights Clarion code in posts. Fence your code block with clarion (also accepts Clarion / CLARION):

```clarion
! your code here
```

A quick sample:

! Unicode greeting
Program

  MAP
    ShowGreeting PROCEDURE(USTRING pText)
  END

Greeting  USTRING(64)

  CODE
  Greeting = U'Héllo Wörld'
  ShowGreeting(Greeting)

ShowGreeting PROCEDURE(USTRING pText)
Win WINDOW('Greeting'),AT(,,180,50),CENTER,GRAY
      PROMPT('Ready'),AT(10,10),USE(?Msg)
    END
  CODE
  OPEN(Win)
  ?Msg{PROP:Text} = pText
  ACCEPT
  END

Colors follow your light/dark theme. This is the same highlighter ClarionHub uses — thanks to Mark Sarson for building and sharing it.

2 Likes