diff --git a/README.md b/README.md index f336e9a..7dcfbbb 100644 --- a/README.md +++ b/README.md @@ -64,12 +64,12 @@ The next step is to set up a `template` to link `code-input` to your syntax-high - *Highlight.js:* ```js - codeInput.registerTemplate("syntax-highlighted", codeInput.templates.hljs(hljs, [] /* Array of plugins (see below) */)); + codeInput.registerTemplate("syntax-highlighted", new codeInput.templates.Hljs(hljs, [] /* Array of plugins (see below) */)); ``` - *Prism.js:* ```js - codeInput.registerTemplate("syntax-highlighted", codeInput.templates.prism(Prism, [] /* Array of plugins (see below) */)); + codeInput.registerTemplate("syntax-highlighted", new codeInput.templates.Prism(Prism, [] /* Array of plugins (see below) */)); ``` - *Custom:* @@ -106,7 +106,7 @@ The next step is to set up a `template` to link `code-input` to your syntax-high - \ No newline at end of file + diff --git a/tests/i18n.html b/tests/i18n.html index b8d4f7f..ed6321d 100644 --- a/tests/i18n.html +++ b/tests/i18n.html @@ -7,7 +7,7 @@ - + @@ -48,14 +48,14 @@ - - - - - - - - + + + + + + + +