t3highlight command not found

In this troubleshooting guide we learn how to fix t3highlight command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

t3highlight: command not found

or when using sudo you get the following error message

sudo: t3highlight: command not found

Solutions to t3highlight: command not found

How To Fix t3highlight: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu t3highlight is provided by t3highlight package.

t3highlight is:

The libt3highlight library provides functions for syntax-highlighting different types of text files. Its main design goal is an easily restartable syntax highlighting, suitable for use in interactive text editors.

To make the syntax highlighting restartable, libt3highlight uses a single integer start-of-line state. However, it does provide several advanced features, such as dynamic end-of-state patterns, which make it possible to highlight complex languages like Perl and Bash with high fidelity.

This package contains the t3highlight program, which allows applying the syntax highlighting capabilities of libt3highlight on the command line to produce for example HTML output.

To fix this problem, we can install more using the command below.

sudo apt-get -y install t3highlight

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install t3highlight.

sudo apt -y install t3highlight

Or if you have aptitude installed you can use the following command.

sudo aptitude install t3highlight

Summary

In this tutorial we learn how to fix t3highlight command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.