1 line
6.4 KiB
JavaScript
1 line
6.4 KiB
JavaScript
"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([["4546"],{3578:function(e,n,i){i.r(n),i.d(n,{default:()=>h,frontMatter:()=>c,metadata:()=>s,assets:()=>r,toc:()=>o,contentTitle:()=>t});var s=JSON.parse('{"id":"api/interfaces/Code","title":"Interface: Code","description":"An object that contains the language, content and compiled code for each of the 3 code editors","source":"@site/docs/api/interfaces/Code.md","sourceDirName":"api/interfaces","slug":"/api/interfaces/Code","permalink":"/docs/api/interfaces/Code","draft":false,"unlisted":false,"editUrl":"https://github.com/live-codes/livecodes/tree/develop/docs/docs/api/interfaces/Code.md","tags":[],"version":"current","frontMatter":{}}'),d=i("5893"),l=i("65");let c={},t="Interface: Code",r={},o=[{value:"Properties",id:"properties",level:2},{value:"markup",id:"markup",level:3},{value:"compiled",id:"compiled",level:4},{value:"content",id:"content",level:4},{value:"language",id:"language",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"result",id:"result",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"script",id:"script",level:3},{value:"compiled",id:"compiled-1",level:4},{value:"content",id:"content-1",level:4},{value:"language",id:"language-1",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"style",id:"style",level:3},{value:"compiled",id:"compiled-2",level:4},{value:"content",id:"content-2",level:4},{value:"language",id:"language-2",level:4},{value:"Defined in",id:"defined-in-3",level:4}];function a(e){let n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",hr:"hr",p:"p",strong:"strong",...(0,l.a)(),...e.components};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(n.header,{children:(0,d.jsx)(n.h1,{id:"interface-code",children:"Interface: Code"})}),"\n",(0,d.jsxs)(n.p,{children:["An object that contains the language, content and compiled code for each of the 3 ",(0,d.jsx)(n.a,{href:"https://livecodes.io/docs/features/projects",children:"code editors"}),"\nand the ",(0,d.jsx)(n.a,{href:"https://livecodes.io/docs/features/result",children:"result page"})," HTML."]}),"\n",(0,d.jsxs)(n.p,{children:["See ",(0,d.jsx)(n.a,{href:"https://livecodes.io/docs/api/interfaces/Code",children:"docs"})," for details."]}),"\n",(0,d.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,d.jsx)(n.h3,{id:"markup",children:"markup"}),"\n",(0,d.jsxs)(n.blockquote,{children:["\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.strong,{children:"markup"}),": ",(0,d.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,d.jsx)(n.h4,{id:"compiled",children:"compiled"}),"\n",(0,d.jsxs)(n.blockquote,{children:["\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.strong,{children:"compiled"}),": ",(0,d.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,d.jsx)(n.h4,{id:"content",children:"content"}),"\n",(0,d.jsxs)(n.blockquote,{children:["\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.strong,{children:"content"}),": ",(0,d.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,d.jsx)(n.h4,{id:"language",children:"language"}),"\n",(0,d.jsxs)(n.blockquote,{children:["\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.strong,{children:"language"}),": ",(0,d.jsx)(n.a,{href:"/docs/api/type-aliases/Language",children:(0,d.jsx)(n.code,{children:"Language"})})]}),"\n"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:"models.ts:1908"}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"result",children:"result"}),"\n",(0,d.jsxs)(n.blockquote,{children:["\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.strong,{children:"result"}),": ",(0,d.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:"models.ts:1923"}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"script",children:"script"}),"\n",(0,d.jsxs)(n.blockquote,{children:["\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.strong,{children:"script"}),": ",(0,d.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,d.jsx)(n.h4,{id:"compiled-1",children:"compiled"}),"\n",(0,d.jsxs)(n.blockquote,{children:["\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.strong,{children:"compiled"}),": ",(0,d.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,d.jsx)(n.h4,{id:"content-1",children:"content"}),"\n",(0,d.jsxs)(n.blockquote,{children:["\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.strong,{children:"content"}),": ",(0,d.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,d.jsx)(n.h4,{id:"language-1",children:"language"}),"\n",(0,d.jsxs)(n.blockquote,{children:["\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.strong,{children:"language"}),": ",(0,d.jsx)(n.a,{href:"/docs/api/type-aliases/Language",children:(0,d.jsx)(n.code,{children:"Language"})})]}),"\n"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:"models.ts:1918"}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"style",children:"style"}),"\n",(0,d.jsxs)(n.blockquote,{children:["\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.strong,{children:"style"}),": ",(0,d.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,d.jsx)(n.h4,{id:"compiled-2",children:"compiled"}),"\n",(0,d.jsxs)(n.blockquote,{children:["\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.strong,{children:"compiled"}),": ",(0,d.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,d.jsx)(n.h4,{id:"content-2",children:"content"}),"\n",(0,d.jsxs)(n.blockquote,{children:["\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.strong,{children:"content"}),": ",(0,d.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,d.jsx)(n.h4,{id:"language-2",children:"language"}),"\n",(0,d.jsxs)(n.blockquote,{children:["\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.strong,{children:"language"}),": ",(0,d.jsx)(n.a,{href:"/docs/api/type-aliases/Language",children:(0,d.jsx)(n.code,{children:"Language"})})]}),"\n"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:"models.ts:1913"})]})}function h(e={}){let{wrapper:n}={...(0,l.a)(),...e.components};return n?(0,d.jsx)(n,{...e,children:(0,d.jsx)(a,{...e})}):a(e)}},65:function(e,n,i){i.d(n,{Z:function(){return t},a:function(){return c}});var s=i(7294);let d={},l=s.createContext(d);function c(e){let n=s.useContext(l);return s.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function t(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:c(e.components),s.createElement(l.Provider,{value:n},e.children)}}}]); |