'yaml', 'label' => 'YAML', 'icon' => 'fas fa-indent', 'color' => '#ffffff', 'background' => '#222222', 'description' => 'Structure YAML', 'fromExtension' => array('yaml','yml'), 'toExtension' => 'yml', 'default' => 'web: - restart: with-hackpoint-only', ); } /* EDITION */ public static function toHtml($resource,$sketch=null){ $infos = self::manifest(); return array( 'html'=>'', 'javascript' => " hackpoint_resource_mirrorify('.arduino-text',{ mode : 'text/x-yaml', lineNumbers : true, theme : 'monokai', readOnly : false }); " ); } } ?>