Skip to content

Commit 220d856

Browse files
committed
Release v2.6.0
1 parent fa38549 commit 220d856

File tree

5 files changed

+25
-15
lines changed

5 files changed

+25
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
![Click to Switch](https://img.shields.io/static/v1?label=&message=Click%20to%20Switch:%20&color=grey&style=for-the-badge)[![Website and Demos](https://img.shields.io/static/v1?label=&message=Website&color=black&style=for-the-badge)](https://code-input-js.org)[![GitHub](https://img.shields.io/static/v1?label=&message=GitHub&color=navy&style=for-the-badge&logo=github)](https://github.com/WebCoder49/code-input)[![Yarn](https://img.shields.io/static/v1?label=&message=Yarn&color=purple&style=for-the-badge&logo=yarn)](https://yarnpkg.com/package?name=@webcoder49/code-input)[![NPM](https://img.shields.io/static/v1?label=&message=NPM&color=red&style=for-the-badge&logo=npm)](https://www.npmjs.com/package/@webcoder49/code-input)
44

55
[![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)
6-
> **An editable <textarea> that supports *any* syntax highlighting algorithm, for code or something else. Also, added plugins.**
6+
> **An editable &lt;textarea&gt; that supports *any* syntax highlighting algorithm, for code or something else. Also, added plugins.**
77
>
88
> Aiming to be more flexible, lightweight, modular, progressively enhanced and standards-based than the alternatives, we support HTML forms, the `<textarea>` JavaScript interface, more languages and more use cases.
99

code-input.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
/* Code-Input Compatibility */
2-
/* By WebCoder49 */
3-
/* First Published on CSS-Tricks.com */
4-
1+
/**
2+
* **code-input** is a library which lets you create custom HTML `<code-input>`
3+
* elements that act like `<textarea>` elements but support syntax-highlighted
4+
* code, implemented using any typical syntax highlighting library.
5+
*
6+
* License of whole library for bundlers:
7+
*
8+
* Copyright 2021-2025 Oliver Geer and contributors
9+
* @license MIT
10+
*
11+
* **<https://code-input-js.org>**
12+
*/
513

614
code-input {
715
/* Allow other elements to be inside */

code-input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Copyright 2021-2025 Oliver Geer and contributors
99
* @license MIT
1010
*
11-
* **<https://github.com/WebCoder49/code-input>**
11+
* **<https://code-input-js.org>**
1212
*/
1313
"use strict";
1414

docs/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ something like [CodeMirror](https://codemirror.net/),
301301
## Read Enough?
302302
**If you don't need web framework integration, get started with the commented tutorials by example on this page, for [Prism.js](#playground-preset-prism), [highlight.js](#playground-preset-hljs), or [another highlighter](#playground-preset-custom). If you're using ECMAScript modules or a web framework, start [here](modules-and-frameworks).**
303303

304-
## Contribute Bug Reports / Code / Docs {contributing}
304+
## Contribute Bug Reports / Code / Docs {#contributing}
305305

306-
code-input.js is collaboratively developed by many people, which is what keeps it going strong. By version 2.6.0, many have reported bugs and suggestions, and 9 people have contributed code or documentation directly. If you have found a bug, would like to help with the code or documentation, or have additional suggestions, for plugins or core functionality, [please look at GitHub]() or [get in touch via email](mailto:code-input-js@webcoder49.dev)!
306+
🎉 code-input.js is collaboratively developed by many people, which is what keeps it going strong. By version 2.6.0, many have reported bugs and suggestions, and [9 people (see them on GitHub)](https://github.com/WebCoder49/code-input/graphs/contributors) have contributed code or documentation directly. If you have found a bug, would like to help with the code or documentation, or have additional suggestions, for plugins or core functionality, [please look at GitHub](https://github.com/WebCoder49/code-input/tree/main/CONTRIBUTING.md) or [get in touch via email so I can add it for you](mailto:code-input-js@webcoder49.dev)!
307307

308-
*We're looking into mirroring code-input.js onto Codeberg as well as GitHub for more flexibility and freedom - if you have ideas for this please email!*
308+
*We're looking into mirroring code-input.js onto Codeberg as well as GitHub for more flexibility and freedom - if you have ideas for this please get in touch!*

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@webcoder49/code-input",
3-
"version": "2.5.1",
4-
"description": "Fully customisable, editable syntax-highlighted textareas.",
3+
"version": "2.6.0",
4+
"description": "An editable &lt;textarea&gt; that supports *any* syntax highlighting algorithm, for code or something else. Also, added plugins.",
55
"browser": "code-input.js",
66
"exports": {
77
".": {
@@ -77,8 +77,8 @@
7777
"./plugins/special-chars.min.css": "./plugins/special-chars.min.css"
7878
},
7979
"scripts": {
80-
"test": "echo \"This is a front-end library, not a Node library. Please see the README for how to use.\" && exit 1",
81-
"postinstall": "cd esm ; node generate.mjs ; cd .."
80+
"test": "echo \"This is a front-end library, not a Node library. Please see https://code-input-js.org for how to use.\" && exit 1",
81+
"prepack": "cd esm ; node generate.mjs ; cd .."
8282
},
8383
"repository": {
8484
"type": "git",
@@ -90,7 +90,9 @@
9090
"highlight",
9191
"textarea",
9292
"editable",
93-
"web-components"
93+
"web-components",
94+
"code-editor",
95+
"text-editor"
9496
],
9597
"author": {
9698
"name": "Oliver Geer and contributors",
@@ -101,5 +103,5 @@
101103
"bugs": {
102104
"url": "https://github.com/WebCoder49/code-input/issues"
103105
},
104-
"homepage": "https://github.com/WebCoder49/code-input#readme"
106+
"homepage": "https://code-input-js.org/"
105107
}

0 commit comments

Comments
 (0)