code-input icon indicating copy to clipboard operation
code-input copied to clipboard

Fully customisable, editable, syntax-highlighted textareas + plugins

Results 48 code-input issues
Sort by recently updated
recently updated
newest added

The language attribute is ignored regardless of what I set it to ("HTML", "html", "CSS", etc.) code-input.language is set to "none" pre and code classes both set to "language-none" The...

While the scrollbar appears it does not auto scroll and so the cursor goes offscreen. It would be nice to have a plugin to do this, so that the user...

bug
area:browser
priority:medium

When the text exceeds the available space horizontally while line numbers are enabled (using prism-line-numbers-plugin) a scrollbar appears for horizontal scrolling as intended. However when scrolling all the way back...

![Screenshot](https://github.com/WebCoder49/code-input/assets/69071853/14766818-707c-4527-a338-97ff67765617) Reproduce this by copy-pasting the Google.com homepage into [Neattribute](https://github.com/WebCoder49/neattribute).

bug
help wanted
area:core
priority:low

Currently, to override code-input's default styles, `!important` is often needed. This is not obvious and should either be removed or well-documented. ```css code-input { margin: 100px!important; --padding: 100px!important; } ```

There should be an easy way to do this. `white-space: pre-wrap` doesn't seem to work.

enhancement
area:core
priority:low

The `code-input` library should be able to be imported after page load. This has been a problem [here](https://github.com/THEOplayer/documentation/blob/refs%2Fheads%2Fmain/src%2Fcomponents%2FCodeInput%2Findex.tsx#L15-L16), fixed with a "hack".

- Using `input` instead of `textarea` - Like GitHub search bar, for use in similar contexts

enhancement
area:core
priority:low

## My environment My work-in-progress WebCoder49/neattribute project, in MS Edge 125.0.2535.51 (Official build) (64-bit). ## Steps to reproduce * Use the FindAndReplace plugin, then Ctrl+F and type a word that...