* @link https://microsoft.github.io/monaco-editor/
* @link https://www.adminer.org/plugins/#use
* @author Jakub Vrana, https://www.vrana.cz/
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
class AdminerMonaco extends Adminer\Plugin {
private $root;
function __construct($root = "https://cdn.jsdelivr.net/npm/monaco-editor@0.52/min/vs") {
$this->root = $root;
}
function syntaxHighlighting($tableStatuses) {
echo Adminer\script_src("$this->root/loader.js", true);
?>
array('' => 'Použije Monaco Editor z VS Code pro zvýrazňování syntaxe a