csv-to-table
csv-to-table copied to clipboard
Set new document language to "CSV (pipe)"
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".
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