#### Beyond Linux® From Scratch (System V Edition) - Version 12.3

### Chapter 11. General Utilities

- Prev

  GTK-Doc-1.34.0

- Next

  ibus-1.5.31

- Up
- Home

# Highlight-4.15

## Introduction to Highlight

Highlight is an utility that converts source code to formatted text with syntax highlighting.

This package is known to build and work properly using an LFS 12.3 platform.

### Package Information

- Download (HTTP): http://www.andre-simon.de/zip/highlight-4.15.tar.bz2

- Download MD5 sum: fd16041ffc8945ef6c4c07dbf83c541c

- Download size: 1.4 MB

- Estimated disk space required: 25 MB (with gui)

- Estimated build time: 0.3 SBU (Using parallelism=4; with gui)

### Highlight Dependencies

#### Required

Boost-1.87.0 and Lua-5.4.7

#### Optional

Qt-6.8.2 (to build the GUI front-end)

## Installation of Highlight

For consistency, do not compress man pages.

    sed -i '/GZIP/s/^/#/' makefile

To build Highlight run the following command:

    make

To build the qt6 GUI front-end, run the following command:

    make doc_dir=/usr/share/doc/highlight-4.15/ gui

This package does not come with a test suite.

To install Highlight, run the following command as the `root` user:

    make doc_dir=/usr/share/doc/highlight-4.15/ install

To install the GUI program, run the following command as the `root` user:

    make install-gui

## Command Explanations

`doc_dir=/usr/share/doc/highlight-4.15/`: installs the highlight documentation into a versioned directory. This parameter is also needed for make gui, because its value would be hardcoded into the gui executable. Note that the trailing “/” is necessary.

## Contents

Installed Programs: highlight and highlight-gui (optional)
Installed Libraries: None
Installed Directories: /etc/highlight, /usr/share/doc/highlight-4.15, and /usr/share/highlight

### Short Descriptions

highlight | is a universal source code to formatted text converter
highlight-gui | is the qt6 interface to highlight.

- Prev

  GTK-Doc-1.34.0

- Next

  ibus-1.5.31

- Up
- Home