Formatting
Syntax highlight

Documentation (opens in a new tab)

Examples:

Simple code block

console.log("hello, world");

Highlight specific code lines

import { useState } from "react";
 
function Counter() {
  const [count, setCount] = useState(0);
  return <button onClick={() => setCount(count + 1)}>{count}</button>;
}

With copy button

console.log("hello, world");