#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 at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...