MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / highlightLineRange

Function highlightLineRange

app/components/JsonPreview.tsx:142–148  ·  view source on GitHub ↗
(range: LineRange | null)

Source from the content-addressed store, hash-verified

140});
141
142function highlightLineRange(range: LineRange | null) {
143 return [
144 baseTheme,
145 range == null ? [] : highlightedRange.of(range),
146 highlightLineRangePlugin,
147 ];
148}
149const lineHighlightDecoration = Decoration.line({
150 attributes: { class: "cm-highlighted" },
151});

Callers 1

JsonPreviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected