0

While posting an update to Chatter, is there a way to put some part in code tag? Like here at Stack Exchange we can put text in code tag. Is there a way to do it in Chatter like this Sample Text ?

2
  • Kindly share what you have tried so far?
    – Raul
    Feb 19, 2018 at 10:54
  • Well, I tried, using ` around the text. Also used actual <code> tag. Both did not work. Feb 19, 2018 at 10:57

1 Answer 1

3

There's a way to post code snippets in Chatter using the Lightning Experience. You can't write inline code blocks like this, but you can make code blocks appear as preformatted paragraphs with some syntax highlighting.

It's also possible to post code snippets using the Chatter REST API and methods in the ConnectApi Apex namespace.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .