Creating q code block with syntax highlighting in a message

  1. Choose the “…” option to “Expand Toolbar”

  1. Choose “</>” option to “Insert/Edit code sample”

  1. a) Choose “q (kdb+ database)” in the “Language” dropdown

  2. b) Enter the code you wish to display

  3. c) Hit “Ok”

Your message will now contain a code block

 

q)tab:( a:1 2;b:4 5) q)tab a b — 1 4 2 5 q)select a from tab // A qsql query a - 1 2

 

Tip: To edit your code block double click on it

Hi Rian,

Thanks for sharing an example of the code block within KX Community. I’ll mark this as solved.

Kind regards,

David

Instructions now also added for adding inline code to your questions & messages.