aboutsummaryrefslogtreecommitdiff
path: root/src/components/TextareaCopyable.vue
diff options
context:
space:
mode:
authorGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2023-06-23 21:40:30 +0200
committerGravatar Corentin THOMASSET <corentin.thomasset74@gmail.com> 2023-06-23 21:47:23 +0200
commitea50a3fc655f329d20895fee40042ab4aa8d2be6 (patch)
tree44170fdf28e560c50c2c869424e235b3e6aefa48 /src/components/TextareaCopyable.vue
parent746e5bdcccb37a39d1b46fc83740e881e49aa9b1 (diff)
downloadit-tools-ea50a3fc655f329d20895fee40042ab4aa8d2be6.tar.gz
it-tools-ea50a3fc655f329d20895fee40042ab4aa8d2be6.tar.zst
it-tools-ea50a3fc655f329d20895fee40042ab4aa8d2be6.zip
feat(new-tool): json to toml
Diffstat (limited to 'src/components/TextareaCopyable.vue')
-rw-r--r--src/components/TextareaCopyable.vue2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/TextareaCopyable.vue b/src/components/TextareaCopyable.vue
index 16e1151..e0c4d8f 100644
--- a/src/components/TextareaCopyable.vue
+++ b/src/components/TextareaCopyable.vue
@@ -6,6 +6,7 @@ import jsonHljs from 'highlight.js/lib/languages/json';
import sqlHljs from 'highlight.js/lib/languages/sql';
import xmlHljs from 'highlight.js/lib/languages/xml';
import yamlHljs from 'highlight.js/lib/languages/yaml';
+import iniHljs from 'highlight.js/lib/languages/ini';
const props = withDefaults(
defineProps<{
@@ -27,6 +28,7 @@ hljs.registerLanguage('json', jsonHljs);
hljs.registerLanguage('html', xmlHljs);
hljs.registerLanguage('xml', xmlHljs);
hljs.registerLanguage('yaml', yamlHljs);
+hljs.registerLanguage('toml', iniHljs);
const { value, language, followHeightOf, copyPlacement, copyMessage } = toRefs(props);
const { height } = followHeightOf.value ? useElementSize(followHeightOf) : { height: ref(null) };