PHP code example of moonshine / ace

1. Go to this page and download the library: Download moonshine/ace library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

moonshine / ace example snippets


use MoonShine\Ace\Fields\Code;

Code::make('Code')

php artisan vendor:publish --tag="moonshine-ace-config"

'options' => [
    'language' => 'javascript',
    'options' => [
        'useSoftTabs' => true,
        'navigateWithinSoftTabs' => true,
    ],
    'themes' => [
        'light' => 'chrome',
        'dark' => 'cobalt'
    ],
],

language(string $language)

Code::make('Code')
    ->language('php');

themes(string $light = null, string $dark = null)

Code::make('Code')
    ->themes('chrome', 'cobalt');

addOption(string $name, string|int|float|bool $value)

Code::make('Code')
    ->addOption('showGutter', false)