Skip to content

Commit cb9557b

Browse files
authored
Update README.md
1 parent 784d389 commit cb9557b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# code-input
2-
[![View License](https://img.shields.io/github/license/webcoder49/code-input?style=for-the-badge)](LICENSE) [![View Releases](https://img.shields.io/github/v/release/webcoder49/code-input?style=for-the-badge)](https://github.com/WebCoder49/code-input/releases)
2+
[![View License](https://img.shields.io/github/license/webcoder49/code-input?style=for-the-badge)](LICENSE) [![View Releases](https://img.shields.io/github/v/release/webcoder49/code-input?style=for-the-badge)](https://github.com/WebCoder49/code-input/releases) [![View the demo on CodePen](https://img.shields.io/static/v1?label=Demo&message=on%20CodePen&color=orange&logo=codepen&style=for-the-badge)](https://codepen.io/WebCoder49/details/jOypJOx)
33

44
> ___Fully customisable syntax-highlighted textareas.___
55
@@ -26,6 +26,8 @@ The `<code-input>` element works like a `<textarea>` and therefore **works in HT
2626

2727
- The next step is to set up a `template` to link `code-input` to your syntax-highlighter. If you're using Prism.js or highlight.js, you can use the built-in template, or you can create your own otherwise. In these examples, I am registering the template as `"syntax-highlighted"`, but you can use any template name as long as you are consistent.
2828

29+
> NB: You need to do this above where you declare any `code-input` elements in the HTML.
30+
2931
- *Highlight.js:*
3032
```js
3133
codeInput.registerTemplate("syntax-highlighted", codeInput.templates.hljs(hljs));

0 commit comments

Comments
 (0)