1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-23 12:04:22 +00:00
bluelib/src/components/Code/Readme.md

15 lines
349 B
Markdown
Raw Normal View History

2021-01-25 18:37:58 +00:00
A **code block** which strips excess indentation and applies syntax highlighting.
> Appearently explodes if `String.raw` is used. Wat?
```jsx
import {atomOneLight} from "react-syntax-highlighter/dist/cjs/styles/hljs";
<Code language={"python"} skin={atomOneLight}>
{`
def hello():
print("Hello world!")
`}
</Code>
```