MCPcopy Create free account
hub / github.com/echoVic/blade-code / code

Method code

src/ui/components/Display.ts:133–137  ·  view source on GitHub ↗

* 代码块显示

(code: string, language?: string, options?: DisplayOptions)

Source from the content-addressed store, hash-verified

131 * 代码块显示
132 */
133 public static code(code: string, language?: string, options?: DisplayOptions): void {
134 const prefix = language ? UIStyles.status.muted(`[${language}]`) + '\n' : '';
135 const text = prefix + UIStyles.component.code(code);
136 this.output(text, options);
137 }
138
139 /**
140 * 引用文本

Callers

nothing calls this directly

Calls 2

outputMethod · 0.95
mutedMethod · 0.80

Tested by

no test coverage detected