Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prettier JSON on slack messages

Tags:

json

slack

Is there a way to make JSON a bit more readable and less dull on Slack? When use simple 3 backticks, I just see:

enter image description here


1 Answers

Slack has no detection and subsequent coloring of JSON within its code formatting for messages.

But you can have just if you send your JSON as "Code Snippet" via files.upload instead of a message text. Make sure to set filetype to javascript.

Btw. this is the intended way for posting larger texts on Slack.

like image 101
Erik Kalkoken Avatar answered Mar 22 '26 01:03

Erik Kalkoken



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!