mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-16 07:17:49 +08:00
17 lines
408 B
Markdown
17 lines
408 B
Markdown
---
|
|
title: Code editor
|
|
---
|
|
import AutoScreenshot from "@components/AutoScreenshot.astro"
|
|
|
|
## Introduction
|
|
|
|
The code editor component allows you to write code in a set of common programming languages: HTML, CSS, JavaScript, PHP and JSON.
|
|
|
|
```php
|
|
use Filament\Forms\Components\CodeEditor;
|
|
|
|
CodeEditor::make('code')
|
|
```
|
|
|
|
<AutoScreenshot name="forms/fields/code-editor/simple" alt="Code editor" version="4.x" />
|