2023-02-02 15:36:15 +01:00
|
|
|
const syntaxHighlight = require("../.eleventy.js");
|
|
|
|
|
2023-02-04 18:33:25 +01:00
|
|
|
module.exports = function (eleventyConfig) {
|
2023-02-02 15:36:15 +01:00
|
|
|
eleventyConfig.addPlugin(syntaxHighlight, {
|
2023-02-06 15:45:32 +01:00
|
|
|
theme: "monokai",
|
|
|
|
lineNumbers: false,
|
2023-02-11 01:36:15 +01:00
|
|
|
highlightStyle: "bg:#943011" /* a background color */,
|
|
|
|
tabWidth: 4,
|
2023-02-06 15:45:32 +01:00
|
|
|
|
2023-02-04 18:33:25 +01:00
|
|
|
lexerOverrides: {
|
|
|
|
njk: "vue",
|
2023-02-06 15:45:32 +01:00
|
|
|
liquid: "vue",
|
|
|
|
},
|
|
|
|
preAttributes: {
|
|
|
|
tabindex: 0,
|
|
|
|
testing: "ZX Spectrum Forever",
|
|
|
|
blargh: "Grrr Argh",
|
|
|
|
style: "border: purple 5px dashed",
|
2023-02-04 18:33:25 +01:00
|
|
|
},
|
2023-02-06 15:45:32 +01:00
|
|
|
codeAttributes: { test: "123" },
|
2023-02-02 15:36:15 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
eleventyConfig.setTemplateFormats("njk,liquid,md,css");
|
|
|
|
};
|