MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / isHighlighted

Function isHighlighted

apps/web/ui/Message/BlockCode/utilities.ts:1–3  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

1export function isHighlighted(code: string): boolean {
2 return code.includes('\n');
3}
4
5export function isFormattable(code: string): boolean {
6 return isJSON(code);

Callers 2

utilities.test.tsFile · 0.90
BlockCodeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected