aarongraham / splunk-syntax-sublime

A Sublime syntax definition for the Splunk Search Processing Language
MIT License
4 stars 3 forks source link

Doesn't highlight inside markdown code blocks #3

Open Balfa opened 2 years ago

Balfa commented 2 years ago

Thanks for the package... It works great in its own .splunk file, but I can't figure out how to get it working inside a markdown code block. Check out the example .splunk and .markdown files at https://gist.github.com/Balfa/750515a2c99bc9efb753bfb28277650f Opening them in sublime text, I'd expect both splunk snippets to get syntax highlighting, but the one in the .markdown file doesn't :(

Any idea why?

I see a similar mention here of the same thing occurring for a gherkin syntax highlighting package: https://forum.sublimetext.com/t/adding-more-syntax-highlight-to-code-blocks-in-markdown/53917

aarongraham commented 2 years ago

Thanks for getting in touch! I can confirm I have the same problem when I try myself. I've done a quick bit of research and I think (but am not totally sure) that it would require a change to the markdown syntax package. Here is an example of a commit to a VSCode markdown package adding support for Php in markdown code fences.

I also checked on VSCode with the splunk search query package there and the same issue exists.