Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
1
export
function
isHighlighted(code: string): boolean {
2
return
code.includes(
'\n'
);
3
}
4
5
export
function
isFormattable(code: string): boolean {
6
return
isJSON(code);
Callers
2
utilities.test.ts
File · 0.90
BlockCode
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected