From a98b5ea6fe8e8cc98a55e0fd793e6e8660ea31c1 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 30 Dec 2021 19:47:21 +0100 Subject: chore: add prismjs for syntax highlighting --- .babelrc | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) (limited to '.babelrc') diff --git a/.babelrc b/.babelrc index 646cc8f..bbc7894 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,53 @@ { "presets": ["next/babel"], - "plugins": ["macros"] + "plugins": [ + "macros", + [ + "prismjs", + { + "languages": [ + "apacheconf", + "bash", + "css", + "diff", + "docker", + "editorconfig", + "ejs", + "git", + "html", + "ignore", + "ini", + "javascript", + "jsdoc", + "json", + "jsx", + "makefile", + "markup", + "php", + "phpdoc", + "regex", + "scss", + "shell-session", + "smarty", + "tcl", + "toml", + "tsx", + "twig", + "yaml" + ], + "plugins": [ + "command-line", + "copy-to-clipboard", + "diff-highlight", + "inline-color", + "line-highlight", + "line-numbers", + "match-braces", + "show-language", + "toolbar" + ], + "css": true + } + ] + ] } -- cgit v1.2.3