KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ Creating q code block with syntax highlighting in a message

  • Creating q code block with syntax highlighting in a message

    Posted by rocuinneagain on November 8, 2021 at 12:00 am

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

     

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

     

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

    3. 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

    rocuinneagain replied 9 months, 1 week ago 1 Member · 1 Reply
  • 1 Reply

Log in to reply.