#Random
This is a place to discuss all things outside of Splunk, its products, and its use cases.

Splunk language mode for syntax highlighting for codemirror (Slack, PasteBin, etc)

chadbaldwin
New Member

This is a bit of a long shot, but I was curious to get the community's input.

Today, I realized that both Slack and PasteBin use "codemirror" to handle their web code editor / syntax highlighting.

With PasteBin, I had to examine the page source to confirm. With Slack, you can confirm it here:
https://slack.com/libs/webapp

I figured I would submit a feature request to codemirror to see if they could add a "language mode" for Splunk. However, my issue was immediately closed with the response that codemirror does not implement new language modes, and it would be better implemented via a separate package.

So I guess someone will have to create and maintain a language mode for codemirror for others to use if they want SPL support.

Unfortunately, I do not have the experience to do this. But looking around, it appears GraphQL built their own codemirror language code package...so I was thinking...even if it's a long shot, maybe I can send the idea to Splunk and see what happens.

Where would be the appropriate place to send this suggestion in to Splunk to see if that's something they'd be interested in implementing? I tried checking the ideas submission, but there are no categories where this idea would fit.

I think it would be awesome if one day we could have Splunk syntax highlighting support in Slack (and also PasteBin, but there's a lot less people using that lol).

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud’s AI Assistant in Action Series: Analyzing and ...

This is the second post in our Splunk Observability Cloud’s AI Assistant in Action series, in which we look at ...

Elevate Your Organization with Splunk’s Next Platform Evolution

 Thursday, July 10, 2025  |  11AM PDT / 2PM EDT Whether you're managing complex deployments or looking to ...

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...