Releases: WebCoder49/code-input
Releases · WebCoder49/code-input
1.0.2
1.0.1
1.0.0
🆕 What's in this release?
- Support for indentation, templates for specifying highlight functions, and placeholder attributes for
<code-input>custom element - Built-in templates (register using
codeInput.registerTemplate(template_name, template); link to element usingtemplateattribute):codeInput.template.prism(prism)- Prism.js support built-in
codeInput.template.hljs(hljs)- highlight.js support built-in
codeInput.template.characterLimit()- Maximum character count in
data-character-limitattribute - Characters over limit in
mark.overflowelement - Overflow message shown in
mark.overflow-msgelement
- Maximum character count in
codeInput.rainbowText(rainbow_colors?, delimiter?)- Styles each section of text split by delimiter to color in rainbow_colors array