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

349 B

A code block which strips excess indentation and applies syntax highlighting.

Appearently explodes if String.raw is used. Wat?

import {atomOneLight} from "react-syntax-highlighter/dist/cjs/styles/hljs";

<Code language={"python"} skin={atomOneLight}>
    {`
        def hello():
            print("Hello world!")
    `}
</Code>