React Textarea Code Editor Versions Save

A simple code editor with syntax highlighting.

v3.0.2

5 months ago

Buy me a coffee npm bundle size

Documentation v3.0.2: https://raw.githack.com/uiwjs/react-textarea-code-editor/f868481/index.html
Comparing Changes: https://github.com/uiwjs/react-textarea-code-editor/compare/v3.0.1...v3.0.2

npm i @uiw/[email protected]
  • 🐞 fix(type): fix export type issue. (#170) 55ee30f @jaywcjlove

v3.0.1

5 months ago

Buy me a coffee npm bundle size

Documentation v3.0.1: https://raw.githack.com/uiwjs/react-textarea-code-editor/e1e1ae9/index.html
Comparing Changes: https://github.com/uiwjs/react-textarea-code-editor/compare/v3.0.0...v3.0.1

npm i @uiw/[email protected]
  • 🆎 type: fix nohighlight component type error. 022189c @jaywcjlove

v3.0.0

5 months ago

Buy me a coffee npm bundle size

Documentation v3.0.0: https://raw.githack.com/uiwjs/react-textarea-code-editor/fd37bcf/index.html
Comparing Changes: https://github.com/uiwjs/react-textarea-code-editor/compare/v2.1.9...v3.0.0

npm i @uiw/[email protected]
  • 🐞 fix(deps): update dependency @uiw/react-markdown-preview-example to v2 #169 84e9464 @jaywcjlove
  • 💄 chore: add sponsor badge. 6937660 @jaywcjlove
  • 🐞 fix(deps): update dependency rehype to v13 (#162) 8d29326 @renovate-bot
  • 🆎 type: fix type error. f3c67d7 @jaywcjlove
  • 🌟 feat: add nohighlight component. 1dc83f5 @jaywcjlove

Remove Code Highlight

The following example can help you exclude code highlighting code from being included in the bundle. @uiw/react-textarea-code-editor/nohighlight component does not contain the rehype-prism-plus code highlighting package.

import React, { useState } from "react";
import CodeEditor from '@uiw/react-textarea-code-editor/nohighlight';

export default function App() {
  const [code, setCode] = useState(
    `function add(a, b) {\n  return a + b;\n}`
  );
  return (
    <CodeEditor
      value={code}
      language="js"
      placeholder="Please enter JS code."
      onChange={(evn) => setCode(evn.target.value)}
      padding={15}
      style={{
        backgroundColor: "#f5f5f5",
        fontFamily: 'ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace',
      }}
    />
  );
}

v2.1.9

7 months ago

v2.1.8

7 months ago

npm bundle size

Documentation v2.1.8: https://raw.githack.com/uiwjs/react-textarea-code-editor/7276be9/index.html
Comparing Changes: https://github.com/uiwjs/react-textarea-code-editor/compare/v2.1.7...v2.1.8

npm i @uiw/[email protected]
  • 🐝 refactor: refactor code project folder & refactor the website. 5b37af8 @jaywcjlove
  • 📖 doc: Add README.md 1f03939 @jaywcjlove
  • 🌍 website: update opensource url. 8af6311 @jaywcjlove
  • 💄 chore: update workflows config. 5ed78a2 @jaywcjlove
  • 📖 doc: Update README.md 79368bb @jaywcjlove
  • 💄 chore(deps): update dependency lint-staged to v14 (#160) 0d4e1a8 @renovate-bot
  • 🐞 fix(deps): update dependency rehype-prism-plus to v1.6.3 (#139) d1985d9 @renovate-bot
  • 💢 ci: update workflows config. c08032b @jaywcjlove
  • ⛑ test: fix test case issue. c726659 @jaywcjlove
  • 💢 ci: update workflows config. e4840b5 @jaywcjlove

v2.1.7

10 months ago

npm bundle size

Documentation v2.1.7: https://raw.githack.com/uiwjs/react-textarea-code-editor/5547392/index.html
Comparing Changes: https://github.com/uiwjs/react-textarea-code-editor/compare/v2.1.6...v2.1.7

npm i @uiw/[email protected]
  • 📖 doc: Update README.md e70199a @jaywcjlove
  • 🐞 fix: fix readOnly props issue. (#152) 42d50b3 @jaywcjlove

v2.1.6

11 months ago

v2.1.5

11 months ago

npm bundle size

Documentation v2.1.5: https://raw.githack.com/uiwjs/react-textarea-code-editor/ef1b29a/index.html
Comparing Changes: https://github.com/uiwjs/react-textarea-code-editor/compare/v2.1.4...v2.1.5

npm i @uiw/[email protected]
  • 📖 doc: add example in document. (#151) 4b608ce @jaywcjlove

v2.1.4

11 months ago

npm bundle size

Documentation v2.1.4: https://raw.githack.com/uiwjs/react-textarea-code-editor/ce820a6/index.html
Comparing Changes: https://github.com/uiwjs/react-textarea-code-editor/compare/v2.1.3...v2.1.4

npm i @uiw/[email protected]
  • 🐞 fix: fix ref issue. 858c229 @jaywcjlove
  • 💄 chore: update workflows config. a120def @jaywcjlove

v2.1.3

11 months ago