Hacker News new | ask | show | jobs
by __vivek 105 days ago
We don't need this, just add syntax highlighting in code blocks.
2 comments

they do have a new shiki based syntax highlighter in code blocks `rich_text_preformatted.language`

https://docs.slack.dev/reference/block-kit/block-elements/ri...

admittedly i don't think there's a way for humans to do it through the ui currently yet, e.g.,

@@@ ```lang foo ``` @@@

you can't always get what you want, sometimes you get what you don't need.
no trying required