WebexPythonSDK icon indicating copy to clipboard operation
WebexPythonSDK copied to clipboard

Send text / markdown with syntax highlighting

Open AdrienPensart opened this issue 3 years ago • 4 comments

Hello,

do you have an example to send json text with syntax highlighting ?

I tried with : text = "```json\n{"key": "value"}\n```"

or markdown "```json\n{"key": "value"}\n```"

It is printed in a code-block, but without syntax highlighting, it works in heavy client Webex teams. Or how do you simply colorize a message ?

AdrienPensart avatar Mar 08 '21 18:03 AdrienPensart

It doesn't look like this is supported. I even tried sending the same HTML that the desktop client creates when you send code highlighted like <pre><code class=\"language-json\">{&quot;key&quot;: &quot;value&quot;}\n</code></pre>.

fdemello avatar Mar 10 '21 00:03 fdemello

confirming this issue. I am unable to get syntax highlighting to work for any language when using REST request to send a message.

ccondry avatar Mar 10 '21 03:03 ccondry

I believe this is a known issue I've reported to the Webex API team previously - you might want to also report it to them directly yourself to help raise visibility/priority (https://developer.webex.com/support)

davidstaudt avatar Mar 11 '21 21:03 davidstaudt

Any updates or workarounds?

robrez avatar Aug 29 '22 14:08 robrez

Closing this issue as it is approximately three years old and appears to have been an issue with the Webex APIs and not the Python SDK.

cmlccie avatar Feb 19 '24 18:02 cmlccie