HighlightText
Extends:
react~Component → HighlightText
HighlightText component displays code with language-specific keyword highlighting
Supported languages
HighlightText is based of highlightJS and supports the following languages/notations:
- Bash
- JavaScript
- JSON
- Python
- YAML
Access
Stage.Basic.HighlightText
Usage
HighlightText (JavaScript)
<HighlightText className="javascript" children={"if ( arguments.length == 0 ) \n console.log('undefined');"}/>
Static Member Summary
Static Public Members | ||
public static |
propTypes: * |