Search code examples
dslslackslack-api

Custom code snippet type in Slack


There is a possibility to post code snippets in many programming languages in Slack:

enter image description here

We have a domain-specific language in our platform and it would be great to have a code snippet type in Slack with the custom code coloring scheme. Is there any possibility to achieve this?


Solution

  • No, it is not possible to define a custom syntax highlighting scheme. You might be better off experimenting with the ones already defined to see whether they provide any accidental pleasant highlighting of your custom DSL.