csv-to-table icon indicating copy to clipboard operation
csv-to-table copied to clipboard

Set new document language to "CSV (pipe)"

Open longzheng opened this issue 1 year ago • 0 comments

This PR automatically sets the new document language to "CSV (pipe)".

The purpose of this is when you have the "Markdown Format" setting is enabled, the output is not automatically detected as a "CSV (pipe)" but just "plain text".

image

image

This is not technically a problem but I also use an extension called Rainbow CSV which does nice color highlighting of the CSV columns. But this only happens for a document with piped CSV if the document language is set to "CSV (pipe)".

(Technically the Rainbow CSV extension has a "table align" feature but it keeps the existing separator which doesn't look as good)

After setting the document to "CSV (pipe)" then the highlighting works

image

longzheng avatar Jun 05 '24 03:06 longzheng