cancel
Showing results for 
Search instead for 
Did you mean: 
rocuinneagain
Contributor III
Contributor III

1. Choose the "..." option to "Expand Toolbar"

rocuinneagain_0-1636382815730.png

2. Choose "</>" option to "Insert/Edit code sample"

rocuinneagain_1-1636382952320.png

3. a) Choose "q (kdb+ database)" in the "Language" dropdown

3. b) Enter the code you wish to display

3. c) Hit "Ok"

rocuinneagain_2-1636383152970.png

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

2 Comments
davidcrossey
Moderator Moderator
Moderator

Hi Rian,

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

Kind regards,

David

rocuinneagain
Contributor III
Contributor III

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