cancel
Showing results for 
Search instead for 
Did you mean: 

Creating q code block with syntax highlighting in a message

rocuinneagain
Contributor
Contributor

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

1 ACCEPTED SOLUTION

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

View solution in original post

1 REPLY 1

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

View solution in original post