Code

You're browsing the documentation for an old version of MoonShine. Consider upgrading your project to MoonShine 2.x.

Extends Textarea * has the same features

Code Editor

use MoonShine\Fields\Code;
 
//...
public function fields(): array
{
return [
Code::make('Code', 'code')
->language('js')
->lineNumbers()
];
}
 
//...