From 11c305f035cc6487fca91a4efb93739267c05eb0 Mon Sep 17 00:00:00 2001 From: WebCoder49 Date: Sun, 18 Feb 2024 15:45:06 +0000 Subject: [PATCH] Add all of prism not just core to demos (Fixes #81); Replace lang with language in README (Fixes #83) --- README.md | 6 +++--- tests/prism.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2804e43..db337ba 100644 --- a/README.md +++ b/README.md @@ -118,13 +118,13 @@ The next step is to set up a `template` to link `code-input` to your syntax-high To see a full list of plugins and their functions, please see [plugins/README.md](./plugins/README.md). ### 4. Using the component -Now that you have registered a template, you can use the custom `` element in HTML. If you have more than one template registered, you need to add the template name as the `template` attribute. With the element, using the `lang` attribute will add a `language-{value}` class to the `pre code` block. You can now use HTML attributes and events to make your element as simple or interactive as you like! +Now that you have registered a template, you can use the custom `` element in HTML. If you have more than one template registered, you need to add the template name as the `template` attribute. With the element, using the `language` attribute will add a `language-{value}` class to the `pre code` block. You can now use HTML attributes and events to make your element as simple or interactive as you like! ```HTML - + ``` *or* ```HTML - < href='https://github.com/WebCoder49/code-input'>code-input</a> + < href='https://github.com/WebCoder49/code-input'>code-input</a> ``` ## Contributing diff --git a/tests/prism.html b/tests/prism.html index 38abdfb..fc72c0b 100644 --- a/tests/prism.html +++ b/tests/prism.html @@ -7,7 +7,7 @@ - +