Bright

React Server Component for syntax highlighting

README

the future is bright


Usage


  1. ``` shell
  2. npm install bright
  3. ```

Use it from a server component, for example in Next.js app/page.js:

  1. ``` js
  2. import { Code } from "bright"

  3. export default function Page() {
  4.   return <Code lang="py">print("hello brightness")</Code>
  5. }
  6. ```

Docs: https://bright.codehike.org

Credits


Thanks LEI Zongmin for providing the bright npm package name

License


MIT