How to use the ace-builds.config function in ace-builds

To help you get started, we’ve selected a few ace-builds examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Picolab / pico-engine / packages / pico-engine-ui / src / components / KrlEditor / index.tsx View on Github external
import * as ace from "ace-builds";
import "ace-builds/webpack-resolver";
import * as React from "react";
import { useEffect, useRef, useState } from "react";
import "./mode-krl";

ace.config.loadModule("ace/ext/searchbox", () => null);

interface Props {
  src?: string;
  theme?: string | null;
  onStatus?: (msg: string) => void;
  onValue?: (src: string) => void;
  readOnly?: boolean;
}

export const themes: { [group: string]: string[] } = {
  bright: [
    "chrome",
    "clouds",
    "crimson_editor",
    "dawn",
    "dreamweaver",