MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / formatCodeBlock

Function formatCodeBlock

src/utils/embeds.js:336–338  ·  view source on GitHub ↗
(content, language = '')

Source from the content-addressed store, hash-verified

334}
335
336export function formatCodeBlock(content, language = '') {
337 return `\`\`\`${language}\n${content}\n\`\`\``;
338}
339
340export function formatInlineCode(content) {
341 return `\`${content}\``;

Callers 1

errorEmbedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected