react-textarea-code-editor
react-textarea-code-editor copied to clipboard
Possibly shown user errors in inserted code
think will be great to add the possibility send errors props with the format
type Errors = {
startAt: number; // start position in string
endAt: number; // end position in string
message: string; // message by hover
}[]
startAt, endAt will use to add a red underline for the respective code the message will show by hovering over the error line, but it is harder to implement
@HardCoreQual Maybe your idea can be implemented with plugins + css.
/**
* rehypePlugins (Array.<Plugin>, default: `[[rehypePrism, { ignoreMissing: true }]]`)
* List of [rehype plugins](https://github.com/rehypejs/rehype/blob/main/doc/plugins.md#list-of-plugins) to use. See the next section for examples on how to pass options
*/
rehypePlugins?: PluggableList;