Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

796 B
Raw Blame
import { languageNames } from "@shikijs/langs";
import { themeNames } from "@shikijs/themes";

// These embedded grammars do not have loaders in Shiki's bundled registry.
const unbundledLanguageNames = new Set([
  "angular-expression",
  "angular-inline-style",
  "angular-inline-template",
  "angular-let-declaration",
  "angular-template",
  "angular-template-blocks",
  "cpp-macro",
  "es-tag-css",
  "es-tag-glsl",
  "es-tag-html",
  "es-tag-sql",
  "es-tag-xml",
  "jinja-html",
  "markdown-nix",
  "markdown-vue",
  "vue-directives",
  "vue-interpolations",
  "vue-sfc-style-variable-injection",
]);

export const codeTextLanguageNames = [
  "plaintext",
  ...languageNames.filter((name) => unbundledLanguageNames.has(name) === false),
];
export const codeTextThemeNames = [...themeNames];