Skip to main content

livecodes

Modules

Interfaces

Type Aliases

Language

Ƭ Language: "html" | "htm" | "markdown" | "md" | "mdown" | "mkdn" | "mdx" | "astro" | "pug" | "jade" | "haml" | "asciidoc" | "adoc" | "asc" | "mustache" | "handlebars" | "hbs" | "ejs" | "eta" | "nunjucks" | "njk" | "liquid" | "liquidjs" | "dot" | "twig" | "vento" | "vto" | "art-template" | "art" | "bbcode" | "bb" | "mjml" | "diagrams" | "diagram" | "graph" | "plt" | "richtext" | "rte" | "rich" | "rte.html" | "css" | "scss" | "sass" | "less" | "stylus" | "styl" | "stylis" | "postcss" | "javascript" | "js" | "json" | "babel" | "es" | "sucrase" | "typescript" | "flow" | "ts" | "jsx" | "tsx" | "react-native" | "react-native.jsx" | "react-native-tsx" | "react-native.tsx" | "vue" | "vue3" | "vue2" | "svelte" | "stencil" | "stencil.tsx" | "solid" | "solid.jsx" | "solid.tsx" | "riot" | "riotjs" | "malina" | "malinajs" | "xht" | "coffeescript" | "coffee" | "livescript" | "ls" | "civet" | "clio" | "imba" | "assemblyscript" | "as" | "python" | "py" | "pyodide" | "python-wasm" | "py-wasm" | "pythonwasm" | "pywasm" | "py3" | "wasm.py" | "r" | "rlang" | "rstats" | "r-wasm" | "ruby" | "rb" | "ruby-wasm" | "wasm.rb" | "rubywasm" | "go" | "golang" | "php" | "php-wasm" | "phpwasm" | "wasm.php" | "cpp" | "c" | "C" | "cp" | "cxx" | "c++" | "cppm" | "ixx" | "ii" | "hpp" | "h" | "cpp-wasm" | "cppwasm" | "cwasm" | "wasm.cpp" | "clang" | "clang.cpp" | "perl" | "pl" | "pm" | "lua" | "lua-wasm" | "luawasm" | "wasm.lua" | "teal" | "tl" | "fennel" | "fnl" | "julia" | "jl" | "scheme" | "scm" | "commonlisp" | "common-lisp" | "lisp" | "clojurescript" | "clojure" | "cljs" | "clj" | "cljc" | "edn" | "gleam" | "rescript" | "res" | "resi" | "reason" | "re" | "rei" | "ocaml" | "ml" | "mli" | "tcl" | "wat" | "wast" | "webassembly" | "wasm" | "Binary" | "csharp" | "sql" | "sqlite" | "sqlite3" | "pg.sql" | "pgsql.sql" | "pgsql" | "pg" | "pglite" | "pglite.sql" | "postgresql" | "postgres" | "postgre.sql" | "postgresql.sql" | "prolog.pl" | "prolog" | "blockly" | "blockly.xml" | "xml" | "pintora"

Language name, alias or extension.

Defined in

models.ts:839

Functions

createPlayground

createPlayground(container, options?): Promise<Playground>

Creates a LiveCodes playground.

Parameters

NameTypeDescription
containerstring | HTMLElementHTMLElement or a string representing a CSS selector. This is the container where the playground is rendered. If not found, an error is thrown (except in headless mode, in which this parameter is optional and can be omitted).
options?EmbedOptionsThe embed options for the playground (optional).

Returns

Promise<Playground>

  • A promise that resolves to a Playground object which exposes many SDK methods that can be used to interact with the playground.

Defined in

index.ts:26

createPlayground(options): Promise<Playground>

Parameters

NameType
optionsEmbedOptions & { view: "headless" }

Returns

Promise<Playground>

Defined in

index.ts:30


getPlaygroundUrl

getPlaygroundUrl(options?): string

Gets the URL to a LiveCodes playground (as a string) from the provided options. This can be useful for providing links to run code in playgrounds.

Parameters

NameTypeDescription
optionsEmbedOptionsThe options for the playground.

Returns

string

  • The URL of the playground (as a string).

Defined in

index.ts:389