Skip to content

Commit

Permalink
json/csv: Add syntax highlight for CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Jul 7, 2024
1 parent d471405 commit 1ac8ea2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"@codemirror/theme-one-dark": "^6.1.2",
"ajv": "^8.16.0",
"ansi-to-html": "^0.7.2",
"codemirror-lang-csv": "^0.1.1",
"crypto-es": "^2.1.0",
"he": "^1.2.0",
"json5": "^2.2.3",
Expand Down
12 changes: 12 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/routes/json/csv/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script>
import { json } from "@codemirror/lang-json";
import { csv } from "codemirror-lang-csv";
import SymmetricInputOutput from "$lib/components/symmetric-input-output.svelte";
import Tool from "$lib/components/tool.svelte";
Expand All @@ -21,6 +22,6 @@
fromTitle="JSON"
toTitle="CSV"
useCodeMirror
leftLang={json()}
leftLang={json()} rightLang={csv()}
{to} {from} />
</Tool>

0 comments on commit 1ac8ea2

Please sign in to comment.