Skip to content

Releases: WebCoder49/code-input

1.0.2

26 Jun 17:38

Choose a tag to compare

Bug Fix

  • #7 Added autodetection for highlight.js - just use highlight.js without a lang attribute!

1.0.1

26 Jun 08:04

Choose a tag to compare

Bug Fixes

  • #1
  • #2
  • #3
    Thanks to everybody who pointed out bugs for this release!

1.0.0

19 Sep 15:26
1135ab8

Choose a tag to compare

🆕 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 using template attribute):
    • 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-limit attribute
      • Characters over limit in mark.overflow element
      • Overflow message shown in mark.overflow-msg element
    • codeInput.rainbowText(rainbow_colors?, delimiter?)
      • Styles each section of text split by delimiter to color in rainbow_colors array