@waystone/syntax-highlighter
v13.0.2
Published
A minimal implementation of react-syntax-highlighter
Downloads
176
Readme
@waystone/syntax-highlighter
This library contains a type safe implementation of react-syntax-highter.
Installation
Install as a part of @waystone/ui
by following these installation instructions, or install by running the script npm i @waystone/syntax-highlighter
Usage
const MyCode = () => {
return (
<SyntaxHighlighter language="javascript" style="stackoverflowDark">
"console.log('Hello World')"
</SyntaxHighlighter>
);
};
For all available styles, see available styles hjjs