0 Replies Latest reply on Mar 28, 2018 12:14 PM by ebradford

    How to Format SQL and SWQL lines in Thwack messages

    ebradford

      I see some people have their SQL or SWQL lines formatted in a more readable format in Thwack messages. I wondered for a long time on how to do that. I searched messages, but the searches brought up other results on the same search parameters. I eventually stumbled on the answer. So, I'm posting this message in case anyone else has this question -- hopefully they will find this message.

       

      SELECT *

      FROM Nodes

      WHERE Nodes.Vendor='Cisco'

       

      Can be made to look like:

      SELECT *
      FROM Nodes
      WHERE Nodes.Vendor='Cisco'

       

      When ready to paste your code, Click the >> icon in the message tool bar, then select "Syntax Highlighting", then select "SQL". A formatted line will appear. just type or paste your code in that line. Click elsewhere on the screen to exit the formatted lines.