MarkdownEditing icon indicating copy to clipboard operation
MarkdownEditing copied to clipboard

How to have syntax highlighting of CSV (when using pantable)

Open reagle opened this issue 4 months ago • 2 comments

When I have a table code block (for use with pantable), is it possible to have CSV highlighting?

test-pantables.md

reagle avatar Sep 04 '25 18:09 reagle

This requires a syntax definition for pantable - it seems to be CSV with YAML frontmatter - which can then be added to fenced-syntaxes context.

example: https://github.com/SublimeText-Markdown/MarkdownEditing/blob/1018d9c36807ecdfae7c8996c994179542f07a0c/syntaxes/Markdown.sublime-syntax#L1415-L1436

deathaxe avatar Sep 05 '25 06:09 deathaxe

I notice there isn't even a fenced CSV definition. This is beyond my experience/ability. I gave it the chatbot go but ran into too many errors. I hope to see CSV, TSV, and pantable support some day!

Markdown-Pantable.sublime-syntax.yaml pantable.sublime-syntax.yaml CSV.sublime-syntax.yaml

reagle avatar Sep 05 '25 12:09 reagle