Skip to content

colorInput() function

Home > strepl > colorInput

Tokenizes, checks syntax paths, and colorizes input lines with full ANSI tags.

Signature:

export declare function colorInput(input: string, registry: Registry, jsMode: boolean, context: any, globals: any): string;

Parameter

Type

Description

input

string

The plain string line contents.

registry

Registry

Active hierarchical navigation dictionary mappings.

jsMode

boolean

Flags if JavaScript lexical rules overwrite normal arguments tokens.

context

any

Stateful parameter variables map.

globals

any

Embedded application environmental global tools.

Returns:

string

Complete colorized text safe for active terminal standard output writers. *