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

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...