代码编辑器
支持20+种语言语法高亮的代码编写和预览。
14px
1
2
3
4
5
6
function fibonacci(n) {
if (n <= 1) return n;
return fibonacci(n - 1) + fibonacci(n - 2);
}
console.log(fibonacci(10)); // 55Lines: 6Characters: 130Bytes: 130
How to Use
- 1
Select the programming language from the dropdown.
- 2
Write or paste your code into the editor — syntax highlighting applies automatically.
- 3
Adjust font size as needed and copy the code with the copy button.
Features
20+ Languages
Syntax highlighting for JavaScript, TypeScript, Python, HTML, CSS, JSON, SQL, Go, Rust, and many more.
Syntax Highlighting
Color-coded syntax makes code easier to read and review at a glance.
Adjustable Font Size
Change the editor font size for comfortable reading and screen sharing.
One-Click Copy
Copy your entire code snippet to the clipboard with a single button click.
FAQ
支持哪些语言?
JavaScript、TypeScript、Python、HTML、CSS、JSON、SQL、Java、C++、Go、Rust、PHP等。
能运行代码吗?
这是带语法高亮的编辑器。运行代码请使用专用运行环境。