aboutsummaryrefslogtreecommitdiffstats
path: root/.babelrc
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-12-30 19:47:21 +0100
committerArmand Philippot <git@armandphilippot.com>2021-12-30 19:47:21 +0100
commita98b5ea6fe8e8cc98a55e0fd793e6e8660ea31c1 (patch)
tree542810ab5aef99150db228bb54fd58303dcb31c7 /.babelrc
parentab355897a12b7bda1089a44de326d41455a0f7a3 (diff)
chore: add prismjs for syntax highlighting
Diffstat (limited to '.babelrc')
-rw-r--r--.babelrc51
1 files changed, 50 insertions, 1 deletions
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
+ }
+ ]
+ ]
}