Code Screenshot
Generate beautiful code screenshots (carbon-style) with syntax highlighting, themes, and window controls. Free online — runs locally, no upload.
1function fibonacci(n: number): number {function fibonacci(n: number): number {2 if (n <= 1) return n; if (n <= 1) return n;3 return fibonacci(n - 1) + fibonacci(n - 2); return fibonacci(n - 1) + fibonacci(n - 2);4}}5 6// Print first 10 numbers// Print first 10 numbers7const sequence = Array.from({ length: 10 }, (_, i) => fibonacci(i));const sequence = Array.from({ length: 10 }, (_, i) => fibonacci(i));8console.log(sequence);console.log(sequence);Tip: Right-click the preview and select "Save image as…" to download as PNG. Or copy the HTML to embed the highlighted code directly in a blog post.