Italic comment lines with colored TODO, FIXME, NOTE, or HACK tags.
1// TODO migrate to server components2// FIXME handles null state poorly3// NOTE revisit once design lock lands
Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.
import { Editor28 } from "@/components/beste/piece/editor28";
<Editor28
comments={[
{
"tag": "TODO",
"text": "migrate to server components"
},
{
"tag": "FIXME",
"text": "handles null state poorly"
},
{
"tag": "NOTE",
"text": "revisit once design lock lands"
}
]}
/>const greet = (name: string) => `Hello, ${name}!`;AI Suggestion caption above a code line with a solid prefix, italic muted ghost text, and a blinking caret.
import { greet } from './greet';const user = { name: 'Ayşe' };const msg = greet(user.name);console.log(msg);
Code lines with colored gutter stripes showing added (emerald), modified (sky), and removed (rose) lines.
--primary: #f43f5e;--accent: #8b5cf6;--surface: #0ea5e9;
CSS lines with inline color swatch squares next to each hex value.
export function Button({ label }) {return <button>{label}</button>;return <button className="btn">{label}</button>;}
Unified diff with tinted add and remove rows, line numbers, and +/− prefix column.
1function·greet(name)·{2→return·`Hello,·${name}!`;3}
Code lines with muted middle-dots for spaces and → glyphs for tabs, revealing indentation.
const value = user.prfile.name;Code line with a lightbulb quick-fix tile and a dropdown of fix options. Preferred fix gets an amber tag.