#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!

ATTENTION!! We’re MOVING (not really)

Hey, all! In an effort to keep this Slack workspace secure and also to make our new members' experience easy, ...

Splunk Admins: Build a Smarter Stack with These Must-See .conf25 Sessions

  Whether you're running a complex Splunk deployment or just getting your bearings as a new admin, .conf25 ...

AppDynamics Summer Webinars

This summer, our mighty AppDynamics team is cooking up some delicious content on YouTube Live to satiate your ...