Monaco is a powerful code editor created by Microsoft. It
provides code highlighting, auto completion and much more.
You can install the package via composer:
composer require spatie/laravel-mailcoach-monaco:^1.0
Publish the assets
php artisan vendor:publish --tag mailcoach-monaco-assets --force
Every time the package is updated you'll need to run that command. You can automate this by adding it to your
post-update-cmd script in
"@php artisan vendor:publish --tag mailcoach-monaco-assets --force"
mailcoach.editor config value to
Configuring the looks
You can change some Monaco editor options by adding a
monaco configuration key to your
mailcoach.php config file.
'monaco' => [
'theme' => 'vs-light',
'fontFamily' => 'Jetbrains Mono',
'fontLigatures' => true,
'fontWeight' => 400,
'fontSize' => '16',
'lineHeight' => '24'