[{"data":1,"prerenderedAt":339},["ShallowReactive",2],{"quirekit-doc:\u002Fen\u002Fplugins\u002Freference\u002Fcode":3},{"id":4,"title":5,"body":6,"description":12,"extension":326,"keywords":327,"locale":330,"meta":331,"navigation":332,"order":333,"path":334,"section":335,"seo":336,"stem":337,"__hash__":338},"docs\u002Fplugins\u002Freference\u002Fcode.en.md","Code",{"type":7,"value":8,"toc":313},"minimark",[9,13,24,29,35,88,96,100,116,124,130,154,161,165,168,171,175,181,186,189,195,201,205,208,258,266,270,281,285,296,309],[10,11,12],"p",{},"Marks inline code within a paragraph. Use CodeBlock for multiline code.",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fextension-code"," · ",[21,22,23],"strong",{},"MIT",[25,26,28],"h2",{"id":27},"editor-compatibility","Editor compatibility",[10,30,31,32],{},"Layer：",[21,33,34],{},"Shared document capability",[36,37,38,54],"table",{},[39,40,41],"thead",{},[42,43,44,48,51],"tr",{},[45,46,47],"th",{},"Editor",[45,49,50],{},"Status",[45,52,53],{},"Assembly and boundaries",[55,56,57,74],"tbody",{},[42,58,59,63,66],{},[60,61,62],"td",{},"Classic",[60,64,65],{},"Supported",[60,67,68,73],{},[69,70,72],"a",{"href":71},"\u002Fen\u002Fplugins\u002Freference\u002Fclassic-editor-preset","classicEditorPreset"," — Use the product-neutral classicEditorPreset without duplicating installed capabilities. The Word preset replaces paragraphs, headings and container lists; do not stack generic structures onto that model.",[42,75,76,79,81],{},[60,77,78],{},"Block",[60,80,65],{},[60,82,83,87],{},[69,84,86],{"href":85},"\u002Fen\u002Fplugins\u002Freference\u002Fcreate-block-editor-preset","createBlockEditorPreset"," — The default createBlockEditor preset installs this capability. Configure the corresponding preset child; graphic editing uses the preset's workspace ports, while persistence and assets remain host-owned. Avoid duplicate extensions.",[10,89,90,91,95],{},"“Supported” means the product assembly above exists; interaction, host services and file formats retain their own conditions. See ",[69,92,94],{"href":93},"\u002Fen\u002Fplugins\u002Fcompatibility","status and integration rules",". Licensing is shown separately.",[25,97,99],{"id":98},"installation","Installation",[101,102,107],"pre",{"className":103,"code":104,"language":105,"meta":106,"style":106},"language-sh shiki shiki-themes github-light github-light github-dark","pnpm add @quirekit\u002Fextension-code@alpha\n","sh","",[16,108,109],{"__ignoreMap":106},[110,111,114],"span",{"class":112,"line":113},"line",1,[110,115,104],{},[10,117,118,119,123],{},"Install in Editor extensions. The host supplies a view, container and persistence; see ",[69,120,122],{"href":121},"\u002Fen\u002Fguide\u002Fquick-start","Quick start",".",[10,125,126,127,129],{},"Included in StarterKit. Configure its ",[16,128,16],{}," child, or disable that child before installing a replacement.",[101,131,135],{"className":132,"code":133,"language":134,"meta":106,"style":106},"language-ts shiki shiki-themes github-light github-light github-dark","import { Code } from '@quirekit\u002Fextension-code'\n","ts",[16,136,137],{"__ignoreMap":106},[110,138,139,143,147,150],{"class":112,"line":113},[110,140,142],{"class":141},"sDD9d","import",[110,144,146],{"class":145},"sVPnS"," { Code } ",[110,148,149],{"class":141},"from",[110,151,153],{"class":152},"s-HEn"," '@quirekit\u002Fextension-code'\n",[10,155,156,157,123],{},"Use compatible versions available from your distribution source. This site uses the Alpha workspace. License labels come from package metadata; see ",[69,158,160],{"href":159},"\u002Fen\u002Fsupport","support and licensing",[25,162,164],{"id":163},"integration-by-editor","Integration by editor",[10,166,167],{},"These snippets use an existing host element named element. The host owns container sizing and persistence; call instance.destroy() on teardown. Avoid duplicating preset capabilities and supply required host ports before installation.",[169,170],"plugin-integration",{"name":5},[25,172,174],{"id":173},"configuration","Configuration",[10,176,177,178,123],{},"These are extension-level defaults. Presets can override them; they are distinct from current document attributes. See ",[69,179,173],{"href":180},"\u002Fen\u002Fplugins\u002Fconfiguration",[182,183,185],"h3",{"id":184},"htmlattributes","HTMLAttributes",[10,187,188],{},"HTML attributes added when the code mark serializes to HTML.",[10,190,191,192],{},"Type：",[16,193,194],{},"Record\u003Cstring, unknown>",[10,196,197,198],{},"Default：",[16,199,200],{},"{}",[25,202,204],{"id":203},"commands-and-runtime","Commands and runtime",[10,206,207],{},"These commands are supplied directly by this extension. Availability depends on the installed schema, selection and protection policy; query editor.can() first.",[36,209,210,220],{},[39,211,212],{},[42,213,214,217],{},[45,215,216],{},"Command",[45,218,219],{},"Parameter signature",[55,221,222,234,246],{},[42,223,224,229],{},[60,225,226],{},[16,227,228],{},"setCode",[60,230,231],{},[16,232,233],{},"setCode()",[42,235,236,241],{},[60,237,238],{},[16,239,240],{},"toggleCode",[60,242,243],{},[16,244,245],{},"toggleCode()",[42,247,248,253],{},[60,249,250],{},[16,251,252],{},"unsetCode",[60,254,255],{},[16,256,257],{},"unsetCode()",[10,259,260,261,265],{},"These are parameter signatures. See ",[69,262,264],{"href":263},"\u002Fen\u002Fbuild\u002Fcommands","commands and controls"," to connect UI while retaining one transaction\u002Fhistory authority.",[25,267,269],{"id":268},"other-public-exports","Other public exports",[271,272,273],"ul",{},[274,275,276,19,278],"li",{},[16,277,5],{},[16,279,280],{},"@quirekit\u002Fstarter-kit",[25,282,284],{"id":283},"next-steps","Next steps",[10,286,287,288,292,293,295],{},"Return to ",[69,289,291],{"href":290},"\u002Fen\u002Fplugins","all plugins",", or read ",[69,294,173],{"href":180}," to distinguish options, attributes and commands.",[10,297,298,299,303,304,308],{},"See ",[69,300,302],{"href":301},"\u002Fen\u002Fbuild\u002Fextension","extension development"," for custom capabilities and ",[69,305,307],{"href":306},"\u002Fen\u002Fbuild","Build a product"," for complete hosting.",[310,311,312],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sDD9d, html code.shiki .sDD9d{--shiki-default:#D73A49;--shiki-light:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVPnS, html code.shiki .sVPnS{--shiki-default:#24292E;--shiki-light:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s-HEn, html code.shiki .s-HEn{--shiki-default:#032F62;--shiki-light:#032F62;--shiki-dark:#9ECBFF}",{"title":106,"searchDepth":314,"depth":314,"links":315},2,[316,317,318,319,323,324,325],{"id":27,"depth":314,"text":28},{"id":98,"depth":314,"text":99},{"id":163,"depth":314,"text":164},{"id":173,"depth":314,"text":174,"children":320},[321],{"id":184,"depth":322,"text":185},3,{"id":203,"depth":314,"text":204},{"id":268,"depth":314,"text":269},{"id":283,"depth":314,"text":284},"md",[5,18,328,329,185,228,240,252,5,5],"行内代码","marks","en",{"navigationTitle":5,"license":23},true,69,"\u002Fen\u002Fplugins\u002Freference\u002Fcode","Marks and text styles",{"title":5,"description":12},"plugins\u002Freference\u002Fcode.en","0BJLn5wF9et9JGsKbeLWSNLTIbctTOy4Wq9E3USc4bw",1793045226878]