Skip to Content

@revideo/2d


@revideo/2d / code / word

Function: word()

word(line, from, length?): CodeRange

Defined in: 2d/src/lib/code/CodeRange.ts:45 

Create a code range that highlights the given word.

Parameters

line

number

The line at which the word appears.

from

number

The column at which the word starts.

length?

number

The length of the word. If omitted, the range will cover the rest of the line.

Returns

CodeRange

© 2026 Haven Technologies, Inc.
Function: word() – Revideo