Programs

Highlight Text

[jp-insert-prog-spec-table]

Download

[jp-insert-download-block]

Description

A small command-line utility which highlights the given substring in the specified text with the specified color.

[jp-insert-donation-button]

Screenshots

Usage

Usage: hlt.exe TEXT [-c=COLORS] [-s=1|0] [-t=STR] [-l] [-h] [-V] [--license] [--home]

Mandatory arguments to short options are mandatory for long options too. Options are case-sensitive. Options and values in square brackets are optional. You can use the -t-c, and -s options multiple times.

Options

Switch Description
Text to be highlighted.
The foreground and background color used to highlight the specified text. See the list of available colors below.
Consider the character case when searching for the text to highlight. By default `-s=0` (not case sensitive).
Highlight some special words used in the logs such as Error, Failed, Warning, Success etc.
Show this help.
Show application version.
Display program license.
Opens program homepage in the default browser.

TEXT

Text can be given on the command line or/and redirected from an external command via a pipe. You can provide multiple text values in any combination with the options.

Available colors

Fuchsia = LightMagenta
Lime = LightGreen
Color names are case insensitive.

Exit codes

Exit codeDescription
OK (no error)
Syntax error
Other error

Examples

  1. Highlight the word ipsum and amet with the default colors:

    hlt "Lorem ipsum dolor sit amet..." -t ipsum -t amet

    Result:


  2. Highlight the word ipsum with the red color, and word dolor with the lime color:

    hlt "Lorem ipsum dolor sit amet..." -c yellow,darkred -t ipsum -c black,lime -t dolor

    Result:


  3. Highlight the file extension .txt and .bat in the file list returned by the ls command:

    ls -alh | hlt -c yellow -t .bat -c blue -t .txt

    Result:


  4. Nested highlighting.
    Highlight the text ConEmu and nE in the variable list returned by the set command:

    set | hlt -t ConEmu -c black,blue -s 1 -t nE

    Result:

How to uninstall?

[jp-insert-uninstall-info-zip]

End User License Agreement

[jp-insert-license-info-total-free]

Jacek

Recent Posts

FUPX

FUPX is an advanced graphical interface for the UPX (Ultimate Packer for eXecutables). It allows…

2 years ago

Rozeta

Rozeta is a program that plots rose diagrams commonly used in geology.

3 years ago

Pazera Free MP4 Video Converter

Pazera Free MP4 Video Converter is a free program that allows you to convert almost…

3 years ago

QuickChangeResolution

Small utility that allows you to quickly change the display resolution

3 years ago

TxtAn – Text Analyzer

A simple text files analyzer. The program counts the lines of text in the given…

3 years ago

Free WebM to MP3 Converter

Free WebM to MP3 Converter is an absolutely free program that converts videos downloaded from…

4 years ago