# Code editor for Filament

 > This is a fork of Sebastiaan Kloose's original filament code editor, as the original repository is archived, I created this fork.

This package provides a code editor form field type for Filament. It's based on CodeMirror 6.

## Installation

You can install the package via composer:

```bash
composer require wiebenieuwenhuis/filament-code-editor
```

## Usage

```php
use Wiebenieuwenhuis\FilamentCodeEditor\Components\CodeEditor;

CodeEditor::make('custom_css'),
```

## Testing

```bash
composer test
```

## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

## Contributing

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

## Security Vulnerabilities

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

## Credits

- [Sebastiaan Kloos](https://github.com/SebastiaanKloos)
- [Wiebe Nieuwenhuis](https://github.com/sweebee)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
