react 带行号的文本框的使用方案
批量录入的一些场景,一行一个,限制200个,需要有行号进行提示,类似于vscode的这种效果
目前 antd和 Fusion Design 的textaera 也都不支持,哎,这些组件库做的,细节呢?说好的宇宙最强体验呢?
所以我们强烈推荐以下的组件库
1、CodeMirror
CodeMirror 6 is a rewrite of the CodeMirror code editor. It greatly improves the library's accessibility and touchscreen support, provides better content analysis and a modern programming interface. The new system matches the existing code in features and performance. It is not API-compatible with the old code.
效果如图:
Editor
Rich IntelliSense, Validation
TypeScript, JavaScript, CSS, LESS, SCSS, JSON, HTML
Basic Syntax Colorization
XML, PHP, C#, C++, Razor, Markdown, Diff, Java, VB, CoffeeScript, Handlebars, Batch, Pug, F#, Lua, Powershell, Python, Ruby, SASS, R, Objective-C
Colorizers are implemented using
