react_code_tag
v1.0.2
Published
Code tag to show code in browser as in code editor.
Downloads
1
Readme
1. Install:
$ npm i react-code-tag
or
$ yarn add react-code-tag
2. Usage
import CodeTag from "react-code-tag"
...
render () {
return <CodeTag code={/* your code */} />
}
3. You can customize colors too:
const style = {
codeColor: '#11fffb',
borderColor: '#ff0303',
backgroundColor: '#4f67d1',
rowNumberColor: '#000',
}
render () {
return <CodeTag code={/* your code */} style={style}/>
}
4. Contribute:
4.1 git clone https://github.com/SVladikO/react-code-tag.git
4.2 cd react-code-tag
4.3 npm install
4.4 npm run start