How To Install source-highlight on CentOS 8

source-highlight is Produces a document with syntax highlighting Produces a document with syntax highlighting

Introduction

In this tutorial we learn how to install source-highlight on CentOS 8.

What is source-highlight

This program, given a source file, produces a document with syntax highlighting. At the moment this package can handle Java, Javascript, C/C++, Prolog, Perl, Php3, Python, Flex, ChangeLog, Ruby, Lua, Caml, Sml and Log as source languages, and HTML, XHTML and ANSI color escape sequences as output format. source-highlight 3.1.8 17.el8 x86_64 660 k source-highlight-3.1.8-17.el8.src.rpm appstream Produces a document with syntax highlighting http GPLv3+ This program, given a source file, produces a document with syntax highlighting. At the moment this package can handle Java, Javascript, C/C++, Prolog, Perl, Php3, Python, Flex, ChangeLog, Ruby, Lua, Caml, Sml and Log as source languages, and HTML, XHTML and ANSI color escape sequences as output format.

We can use yum or dnf to install source-highlight on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install source-highlight.

Install source-highlight on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install source-highlight using dnf by running the following command:

sudo dnf -y install source-highlight

Install source-highlight on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install source-highlight using yum by running the following command:

sudo yum -y install source-highlight

How To Uninstall source-highlight on CentOS 8

To uninstall only the source-highlight package we can use the following command:

sudo dnf remove source-highlight

source-highlight Package Contents on CentOS 8

/usr/bin/check-regexp
/usr/bin/cpp2html
/usr/bin/java2html
/usr/bin/source-highlight
/usr/bin/source-highlight-esc.sh
/usr/bin/source-highlight-settings
/usr/bin/src-hilite-lesspipe.sh
/usr/lib/.build-id
/usr/lib/.build-id/27
/usr/lib/.build-id/27/f83934187208df346c4d6b5a8e7c6532ad672d
/usr/lib/.build-id/73
/usr/lib/.build-id/73/0269588ac88781d4a8bda1243b5fc115082677
/usr/lib/.build-id/ab
/usr/lib/.build-id/ab/634d9662eb69d8998307a1618b56c3346f1b29
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/3c25c53f5dc1571bc9b1a0d9ede4781d3171e0
/usr/lib/libsource-highlight.so.4
/usr/lib/libsource-highlight.so.4.0.1
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/source-highlight
/usr/share/doc/source-highlight
/usr/share/doc/source-highlight/COPYING
/usr/share/doc/source-highlight/CREDITS
/usr/share/doc/source-highlight/ChangeLog
/usr/share/doc/source-highlight/Hello.css
/usr/share/doc/source-highlight/Hello.java
/usr/share/doc/source-highlight/Hello.java.html
/usr/share/doc/source-highlight/Hello1.html
/usr/share/doc/source-highlight/Hello2.css
/usr/share/doc/source-highlight/Hello2.html
/usr/share/doc/source-highlight/Hello3.html
/usr/share/doc/source-highlight/Hello4.html
/usr/share/doc/source-highlight/Hello5.html
/usr/share/doc/source-highlight/Hello_h_f.html
/usr/share/doc/source-highlight/Hello_lines.html
/usr/share/doc/source-highlight/Hello_notfixed.html
/usr/share/doc/source-highlight/Hello_xhtml.html
/usr/share/doc/source-highlight/Hello_xhtml2.html
/usr/share/doc/source-highlight/INSTALL
/usr/share/doc/source-highlight/NEWS
/usr/share/doc/source-highlight/README
/usr/share/doc/source-highlight/SimpleClass-doc.html
/usr/share/doc/source-highlight/SimpleClass.html
/usr/share/doc/source-highlight/SimpleClass.java
/usr/share/doc/source-highlight/THANKS
/usr/share/doc/source-highlight/TODO.txt
/usr/share/doc/source-highlight/UsageExample.html
/usr/share/doc/source-highlight/UsageExample.java
/usr/share/doc/source-highlight/access.log.html
/usr/share/doc/source-highlight/auth.log.html
/usr/share/doc/source-highlight/c.lang.html
/usr/share/doc/source-highlight/cmdline.h.html
/usr/share/doc/source-highlight/colors.html
/usr/share/doc/source-highlight/cpp2html.css
/usr/share/doc/source-highlight/default.css
/usr/share/doc/source-highlight/default.style.html
/usr/share/doc/source-highlight/error.log.html
/usr/share/doc/source-highlight/examples
/usr/share/doc/source-highlight/examples.html
/usr/share/doc/source-highlight/examples/infoformatter-main.cpp
/usr/share/doc/source-highlight/examples/infoformatter.h
/usr/share/doc/source-highlight/examples/source-highlight-console-main.cpp
/usr/share/doc/source-highlight/examples/styleformatter-main.cpp
/usr/share/doc/source-highlight/examples/styleformatter.h
/usr/share/doc/source-highlight/examples/styleformatterfactory.h
/usr/share/doc/source-highlight/flex_scanner.ll.html
/usr/share/doc/source-highlight/footer.html
/usr/share/doc/source-highlight/header.html
/usr/share/doc/source-highlight/index.html
/usr/share/doc/source-highlight/langdef.lang.html
/usr/share/doc/source-highlight/log.lang.html
/usr/share/doc/source-highlight/mono-alt.css
/usr/share/doc/source-highlight/mono.css
/usr/share/doc/source-highlight/sh_acid.css
/usr/share/doc/source-highlight/sh_berries-dark.css
/usr/share/doc/source-highlight/sh_berries-light.css
/usr/share/doc/source-highlight/sh_bipolar.css
/usr/share/doc/source-highlight/sh_blacknblue.css
/usr/share/doc/source-highlight/sh_bright.css
/usr/share/doc/source-highlight/sh_contrast.css
/usr/share/doc/source-highlight/sh_darkblue.css
/usr/share/doc/source-highlight/sh_darkness.css
/usr/share/doc/source-highlight/sh_desert.css
/usr/share/doc/source-highlight/sh_dull.css
/usr/share/doc/source-highlight/sh_easter.css
/usr/share/doc/source-highlight/sh_emacs.css
/usr/share/doc/source-highlight/sh_golden.css
/usr/share/doc/source-highlight/sh_greenlcd.css
/usr/share/doc/source-highlight/sh_ide-anjuta.css
/usr/share/doc/source-highlight/sh_ide-codewarrior.css
/usr/share/doc/source-highlight/sh_ide-devcpp.css
/usr/share/doc/source-highlight/sh_ide-eclipse.css
/usr/share/doc/source-highlight/sh_ide-kdev.css
/usr/share/doc/source-highlight/sh_ide-msvcpp.css
/usr/share/doc/source-highlight/sh_kwrite.css
/usr/share/doc/source-highlight/sh_matlab.css
/usr/share/doc/source-highlight/sh_navy.css
/usr/share/doc/source-highlight/sh_nedit.css
/usr/share/doc/source-highlight/sh_neon.css
/usr/share/doc/source-highlight/sh_night.css
/usr/share/doc/source-highlight/sh_pablo.css
/usr/share/doc/source-highlight/sh_peachpuff.css
/usr/share/doc/source-highlight/sh_print.css
/usr/share/doc/source-highlight/sh_rand01.css
/usr/share/doc/source-highlight/sh_the.css
/usr/share/doc/source-highlight/sh_typical.css
/usr/share/doc/source-highlight/sh_vampire.css
/usr/share/doc/source-highlight/sh_vim-dark.css
/usr/share/doc/source-highlight/sh_vim.css
/usr/share/doc/source-highlight/sh_whatis.css
/usr/share/doc/source-highlight/sh_whitengrey.css
/usr/share/doc/source-highlight/sh_zellner.css
/usr/share/doc/source-highlight/source-highlight.cc.html
/usr/share/doc/source-highlight/source-highlight.html
/usr/share/doc/source-highlight/style_examples.html
/usr/share/doc/source-highlight/syslog.log.html
/usr/share/doc/source-highlight/syslog.style.html
/usr/share/doc/source-highlight/test.htm.html
/usr/share/doc/source-highlight/test.java.html
/usr/share/doc/source-highlight/test.java.tex.html
/usr/share/doc/source-highlight/test.js.html
/usr/share/doc/source-highlight/test.log.html
/usr/share/doc/source-highlight/test.lua.html
/usr/share/doc/source-highlight/test.ml.html
/usr/share/doc/source-highlight/test.php3.html
/usr/share/doc/source-highlight/test.pl.html
/usr/share/doc/source-highlight/test.pm.html
/usr/share/doc/source-highlight/test.py.html
/usr/share/doc/source-highlight/test.rb.html
/usr/share/doc/source-highlight/test.sml.html
/usr/share/doc/source-highlight/test_linerange_sep.html
/usr/share/doc/source-highlight/test_refs.cpp.html
/usr/share/doc/source-highlight/test_refs.h.html
/usr/share/doc/source-highlight/test_regexrange4.html
/usr/share/doc/source-highlight/xhtml.css
/usr/share/info/source-highlight-lib.info.gz
/usr/share/info/source-highlight.info.gz
/usr/share/man/man1/check-regexp.1.gz
/usr/share/man/man1/source-highlight-settings.1.gz
/usr/share/man/man1/source-highlight.1.gz
/usr/share/source-highlight
/usr/share/source-highlight/Hello.css
/usr/share/source-highlight/Hello2.css
/usr/share/source-highlight/ada.lang
/usr/share/source-highlight/applescript.lang
/usr/share/source-highlight/asm.lang
/usr/share/source-highlight/awk.lang
/usr/share/source-highlight/bat.lang
/usr/share/source-highlight/bib.lang
/usr/share/source-highlight/bison.lang
/usr/share/source-highlight/c.lang
/usr/share/source-highlight/c_comment.lang
/usr/share/source-highlight/c_string.lang
/usr/share/source-highlight/caml.lang
/usr/share/source-highlight/changelog.lang
/usr/share/source-highlight/clike_vardeclaration.lang
/usr/share/source-highlight/clipper.lang
/usr/share/source-highlight/cobol.lang
/usr/share/source-highlight/coffeescript.lang
/usr/share/source-highlight/conf.lang
/usr/share/source-highlight/cpp.lang
/usr/share/source-highlight/cpp2html.css
/usr/share/source-highlight/csharp.lang
/usr/share/source-highlight/css.lang
/usr/share/source-highlight/css_common.outlang
/usr/share/source-highlight/d.lang
/usr/share/source-highlight/default.css
/usr/share/source-highlight/default.lang
/usr/share/source-highlight/default.style
/usr/share/source-highlight/desktop.lang
/usr/share/source-highlight/diff.lang
/usr/share/source-highlight/docbook.outlang
/usr/share/source-highlight/erlang.lang
/usr/share/source-highlight/errors.lang
/usr/share/source-highlight/esc.outlang
/usr/share/source-highlight/esc.style
/usr/share/source-highlight/esc256.outlang
/usr/share/source-highlight/esc256.style
/usr/share/source-highlight/extreme_comment.lang
/usr/share/source-highlight/extreme_comment2.lang
/usr/share/source-highlight/extreme_comment3.lang
/usr/share/source-highlight/feature.lang
/usr/share/source-highlight/fixed-fortran.lang
/usr/share/source-highlight/flex.lang
/usr/share/source-highlight/fortran.lang
/usr/share/source-highlight/function.lang
/usr/share/source-highlight/glsl.lang
/usr/share/source-highlight/go.lang
/usr/share/source-highlight/groff_man.outlang
/usr/share/source-highlight/groff_mm.outlang
/usr/share/source-highlight/groff_mm_color.outlang
/usr/share/source-highlight/groovy.lang
/usr/share/source-highlight/haskell.lang
/usr/share/source-highlight/haskell_literate.lang
/usr/share/source-highlight/haxe.lang
/usr/share/source-highlight/html.lang
/usr/share/source-highlight/html.outlang
/usr/share/source-highlight/html5.outlang
/usr/share/source-highlight/html5_common.outlang
/usr/share/source-highlight/html_common.outlang
/usr/share/source-highlight/html_notfixed.outlang
/usr/share/source-highlight/html_ref.outlang
/usr/share/source-highlight/html_simple.lang
/usr/share/source-highlight/htmlcss.outlang
/usr/share/source-highlight/htmltable.outlang
/usr/share/source-highlight/htmltablelinenum.outlang
/usr/share/source-highlight/islisp.lang
/usr/share/source-highlight/java.lang
/usr/share/source-highlight/javadoc.outlang
/usr/share/source-highlight/javalog.lang
/usr/share/source-highlight/javalog.style
/usr/share/source-highlight/javascript.lang
/usr/share/source-highlight/json.lang
/usr/share/source-highlight/json.style
/usr/share/source-highlight/key_string.lang
/usr/share/source-highlight/lang.map
/usr/share/source-highlight/langdef.lang
/usr/share/source-highlight/latex.lang
/usr/share/source-highlight/latex.outlang
/usr/share/source-highlight/latexcolor.outlang
/usr/share/source-highlight/ldap.lang
/usr/share/source-highlight/lilypond.lang
/usr/share/source-highlight/lilypond.style
/usr/share/source-highlight/lisp.lang
/usr/share/source-highlight/log.lang
/usr/share/source-highlight/logtalk.lang
/usr/share/source-highlight/lsm.lang
/usr/share/source-highlight/lua.lang
/usr/share/source-highlight/m4.lang
/usr/share/source-highlight/makefile.lang
/usr/share/source-highlight/manifest.lang
/usr/share/source-highlight/mediawiki.outlang
/usr/share/source-highlight/mono-alt.css
/usr/share/source-highlight/mono.css
/usr/share/source-highlight/nohilite.lang
/usr/share/source-highlight/number.lang
/usr/share/source-highlight/odf.outlang
/usr/share/source-highlight/opa.lang
/usr/share/source-highlight/outlang.lang
/usr/share/source-highlight/outlang.map
/usr/share/source-highlight/oz.lang
/usr/share/source-highlight/pascal.lang
/usr/share/source-highlight/pc.lang
/usr/share/source-highlight/perl.lang
/usr/share/source-highlight/php.lang
/usr/share/source-highlight/po.lang
/usr/share/source-highlight/postscript.lang
/usr/share/source-highlight/prolog.lang
/usr/share/source-highlight/properties.lang
/usr/share/source-highlight/proto.lang
/usr/share/source-highlight/python.lang
/usr/share/source-highlight/r.lang
/usr/share/source-highlight/r.style
/usr/share/source-highlight/ruby.lang
/usr/share/source-highlight/s.lang
/usr/share/source-highlight/scala.lang
/usr/share/source-highlight/scheme.lang
/usr/share/source-highlight/script_comment.lang
/usr/share/source-highlight/sexp.outlang
/usr/share/source-highlight/sh.lang
/usr/share/source-highlight/sh_acid.css
/usr/share/source-highlight/sh_berries-dark.css
/usr/share/source-highlight/sh_berries-light.css
/usr/share/source-highlight/sh_bipolar.css
/usr/share/source-highlight/sh_blacknblue.css
/usr/share/source-highlight/sh_bright.css
/usr/share/source-highlight/sh_contrast.css
/usr/share/source-highlight/sh_darkblue.css
/usr/share/source-highlight/sh_darkness.css
/usr/share/source-highlight/sh_desert.css
/usr/share/source-highlight/sh_dull.css
/usr/share/source-highlight/sh_easter.css
/usr/share/source-highlight/sh_emacs.css
/usr/share/source-highlight/sh_golden.css
/usr/share/source-highlight/sh_greenlcd.css
/usr/share/source-highlight/sh_ide-anjuta.css
/usr/share/source-highlight/sh_ide-codewarrior.css
/usr/share/source-highlight/sh_ide-devcpp.css
/usr/share/source-highlight/sh_ide-eclipse.css
/usr/share/source-highlight/sh_ide-kdev.css
/usr/share/source-highlight/sh_ide-msvcpp.css
/usr/share/source-highlight/sh_kwrite.css
/usr/share/source-highlight/sh_matlab.css
/usr/share/source-highlight/sh_navy.css
/usr/share/source-highlight/sh_nedit.css
/usr/share/source-highlight/sh_neon.css
/usr/share/source-highlight/sh_night.css
/usr/share/source-highlight/sh_pablo.css
/usr/share/source-highlight/sh_peachpuff.css
/usr/share/source-highlight/sh_print.css
/usr/share/source-highlight/sh_rand01.css
/usr/share/source-highlight/sh_the.css
/usr/share/source-highlight/sh_typical.css
/usr/share/source-highlight/sh_vampire.css
/usr/share/source-highlight/sh_vim-dark.css
/usr/share/source-highlight/sh_vim.css
/usr/share/source-highlight/sh_whatis.css
/usr/share/source-highlight/sh_whitengrey.css
/usr/share/source-highlight/sh_zellner.css
/usr/share/source-highlight/slang.lang
/usr/share/source-highlight/sml.lang
/usr/share/source-highlight/spec.lang
/usr/share/source-highlight/sql.lang
/usr/share/source-highlight/style.defaults
/usr/share/source-highlight/style.lang
/usr/share/source-highlight/style2.style
/usr/share/source-highlight/style3.style
/usr/share/source-highlight/symbols.lang
/usr/share/source-highlight/tcl.lang
/usr/share/source-highlight/texinfo.lang
/usr/share/source-highlight/texinfo.outlang
/usr/share/source-highlight/texinfo.style
/usr/share/source-highlight/tml.lang
/usr/share/source-highlight/tml_formatting.lang
/usr/share/source-highlight/tml_formatting_all.lang
/usr/share/source-highlight/tml_glue.lang
/usr/share/source-highlight/tml_macrolinks.lang
/usr/share/source-highlight/tml_macros.lang
/usr/share/source-highlight/tml_macros1.lang
/usr/share/source-highlight/tml_macros2.lang
/usr/share/source-highlight/tml_macrosdelayed1.lang
/usr/share/source-highlight/tml_macrosdelayed2.lang
/usr/share/source-highlight/tml_macrosdelayed3.lang
/usr/share/source-highlight/tml_macrotokens.lang
/usr/share/source-highlight/todo.lang
/usr/share/source-highlight/upc.lang
/usr/share/source-highlight/url.lang
/usr/share/source-highlight/vala.lang
/usr/share/source-highlight/vbscript.lang
/usr/share/source-highlight/xhtml.css
/usr/share/source-highlight/xhtml.outlang
/usr/share/source-highlight/xhtml_common.outlang
/usr/share/source-highlight/xhtml_notfixed.outlang
/usr/share/source-highlight/xhtmlcss.outlang
/usr/share/source-highlight/xhtmltable.outlang
/usr/share/source-highlight/xml.lang
/usr/share/source-highlight/xorg.lang
/usr/share/source-highlight/zsh.lang
/usr/bin/check-regexp
/usr/bin/cpp2html
/usr/bin/java2html
/usr/bin/source-highlight
/usr/bin/source-highlight-esc.sh
/usr/bin/source-highlight-settings
/usr/bin/src-hilite-lesspipe.sh
/usr/lib/.build-id
/usr/lib/.build-id/68
/usr/lib/.build-id/68/90dc8bb12326a5851f99a0ff5edbe8ec11c801
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/2cd12f7a8c35950c70696cf7f5d09c8e3ab159
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/980d3b09087ae6c63fe15b0b6a0ab09ebd5487
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/23c0ca4ace83958ad65b7a708ff8269420cba9
/usr/lib64/libsource-highlight.so.4
/usr/lib64/libsource-highlight.so.4.0.1
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/source-highlight
/usr/share/doc/source-highlight
/usr/share/doc/source-highlight/COPYING
/usr/share/doc/source-highlight/CREDITS
/usr/share/doc/source-highlight/ChangeLog
/usr/share/doc/source-highlight/Hello.css
/usr/share/doc/source-highlight/Hello.java
/usr/share/doc/source-highlight/Hello.java.html
/usr/share/doc/source-highlight/Hello1.html
/usr/share/doc/source-highlight/Hello2.css
/usr/share/doc/source-highlight/Hello2.html
/usr/share/doc/source-highlight/Hello3.html
/usr/share/doc/source-highlight/Hello4.html
/usr/share/doc/source-highlight/Hello5.html
/usr/share/doc/source-highlight/Hello_h_f.html
/usr/share/doc/source-highlight/Hello_lines.html
/usr/share/doc/source-highlight/Hello_notfixed.html
/usr/share/doc/source-highlight/Hello_xhtml.html
/usr/share/doc/source-highlight/Hello_xhtml2.html
/usr/share/doc/source-highlight/INSTALL
/usr/share/doc/source-highlight/NEWS
/usr/share/doc/source-highlight/README
/usr/share/doc/source-highlight/SimpleClass-doc.html
/usr/share/doc/source-highlight/SimpleClass.html
/usr/share/doc/source-highlight/SimpleClass.java
/usr/share/doc/source-highlight/THANKS
/usr/share/doc/source-highlight/TODO.txt
/usr/share/doc/source-highlight/UsageExample.html
/usr/share/doc/source-highlight/UsageExample.java
/usr/share/doc/source-highlight/access.log.html
/usr/share/doc/source-highlight/auth.log.html
/usr/share/doc/source-highlight/c.lang.html
/usr/share/doc/source-highlight/cmdline.h.html
/usr/share/doc/source-highlight/colors.html
/usr/share/doc/source-highlight/cpp2html.css
/usr/share/doc/source-highlight/default.css
/usr/share/doc/source-highlight/default.style.html
/usr/share/doc/source-highlight/error.log.html
/usr/share/doc/source-highlight/examples
/usr/share/doc/source-highlight/examples.html
/usr/share/doc/source-highlight/examples/infoformatter-main.cpp
/usr/share/doc/source-highlight/examples/infoformatter.h
/usr/share/doc/source-highlight/examples/source-highlight-console-main.cpp
/usr/share/doc/source-highlight/examples/styleformatter-main.cpp
/usr/share/doc/source-highlight/examples/styleformatter.h
/usr/share/doc/source-highlight/examples/styleformatterfactory.h
/usr/share/doc/source-highlight/flex_scanner.ll.html
/usr/share/doc/source-highlight/footer.html
/usr/share/doc/source-highlight/header.html
/usr/share/doc/source-highlight/index.html
/usr/share/doc/source-highlight/langdef.lang.html
/usr/share/doc/source-highlight/log.lang.html
/usr/share/doc/source-highlight/mono-alt.css
/usr/share/doc/source-highlight/mono.css
/usr/share/doc/source-highlight/sh_acid.css
/usr/share/doc/source-highlight/sh_berries-dark.css
/usr/share/doc/source-highlight/sh_berries-light.css
/usr/share/doc/source-highlight/sh_bipolar.css
/usr/share/doc/source-highlight/sh_blacknblue.css
/usr/share/doc/source-highlight/sh_bright.css
/usr/share/doc/source-highlight/sh_contrast.css
/usr/share/doc/source-highlight/sh_darkblue.css
/usr/share/doc/source-highlight/sh_darkness.css
/usr/share/doc/source-highlight/sh_desert.css
/usr/share/doc/source-highlight/sh_dull.css
/usr/share/doc/source-highlight/sh_easter.css
/usr/share/doc/source-highlight/sh_emacs.css
/usr/share/doc/source-highlight/sh_golden.css
/usr/share/doc/source-highlight/sh_greenlcd.css
/usr/share/doc/source-highlight/sh_ide-anjuta.css
/usr/share/doc/source-highlight/sh_ide-codewarrior.css
/usr/share/doc/source-highlight/sh_ide-devcpp.css
/usr/share/doc/source-highlight/sh_ide-eclipse.css
/usr/share/doc/source-highlight/sh_ide-kdev.css
/usr/share/doc/source-highlight/sh_ide-msvcpp.css
/usr/share/doc/source-highlight/sh_kwrite.css
/usr/share/doc/source-highlight/sh_matlab.css
/usr/share/doc/source-highlight/sh_navy.css
/usr/share/doc/source-highlight/sh_nedit.css
/usr/share/doc/source-highlight/sh_neon.css
/usr/share/doc/source-highlight/sh_night.css
/usr/share/doc/source-highlight/sh_pablo.css
/usr/share/doc/source-highlight/sh_peachpuff.css
/usr/share/doc/source-highlight/sh_print.css
/usr/share/doc/source-highlight/sh_rand01.css
/usr/share/doc/source-highlight/sh_the.css
/usr/share/doc/source-highlight/sh_typical.css
/usr/share/doc/source-highlight/sh_vampire.css
/usr/share/doc/source-highlight/sh_vim-dark.css
/usr/share/doc/source-highlight/sh_vim.css
/usr/share/doc/source-highlight/sh_whatis.css
/usr/share/doc/source-highlight/sh_whitengrey.css
/usr/share/doc/source-highlight/sh_zellner.css
/usr/share/doc/source-highlight/source-highlight.cc.html
/usr/share/doc/source-highlight/source-highlight.html
/usr/share/doc/source-highlight/style_examples.html
/usr/share/doc/source-highlight/syslog.log.html
/usr/share/doc/source-highlight/syslog.style.html
/usr/share/doc/source-highlight/test.htm.html
/usr/share/doc/source-highlight/test.java.html
/usr/share/doc/source-highlight/test.java.tex.html
/usr/share/doc/source-highlight/test.js.html
/usr/share/doc/source-highlight/test.log.html
/usr/share/doc/source-highlight/test.lua.html
/usr/share/doc/source-highlight/test.ml.html
/usr/share/doc/source-highlight/test.php3.html
/usr/share/doc/source-highlight/test.pl.html
/usr/share/doc/source-highlight/test.pm.html
/usr/share/doc/source-highlight/test.py.html
/usr/share/doc/source-highlight/test.rb.html
/usr/share/doc/source-highlight/test.sml.html
/usr/share/doc/source-highlight/test_linerange_sep.html
/usr/share/doc/source-highlight/test_refs.cpp.html
/usr/share/doc/source-highlight/test_refs.h.html
/usr/share/doc/source-highlight/test_regexrange4.html
/usr/share/doc/source-highlight/xhtml.css
/usr/share/info/source-highlight-lib.info.gz
/usr/share/info/source-highlight.info.gz
/usr/share/man/man1/check-regexp.1.gz
/usr/share/man/man1/source-highlight-settings.1.gz
/usr/share/man/man1/source-highlight.1.gz
/usr/share/source-highlight
/usr/share/source-highlight/Hello.css
/usr/share/source-highlight/Hello2.css
/usr/share/source-highlight/ada.lang
/usr/share/source-highlight/applescript.lang
/usr/share/source-highlight/asm.lang
/usr/share/source-highlight/awk.lang
/usr/share/source-highlight/bat.lang
/usr/share/source-highlight/bib.lang
/usr/share/source-highlight/bison.lang
/usr/share/source-highlight/c.lang
/usr/share/source-highlight/c_comment.lang
/usr/share/source-highlight/c_string.lang
/usr/share/source-highlight/caml.lang
/usr/share/source-highlight/changelog.lang
/usr/share/source-highlight/clike_vardeclaration.lang
/usr/share/source-highlight/clipper.lang
/usr/share/source-highlight/cobol.lang
/usr/share/source-highlight/coffeescript.lang
/usr/share/source-highlight/conf.lang
/usr/share/source-highlight/cpp.lang
/usr/share/source-highlight/cpp2html.css
/usr/share/source-highlight/csharp.lang
/usr/share/source-highlight/css.lang
/usr/share/source-highlight/css_common.outlang
/usr/share/source-highlight/d.lang
/usr/share/source-highlight/default.css
/usr/share/source-highlight/default.lang
/usr/share/source-highlight/default.style
/usr/share/source-highlight/desktop.lang
/usr/share/source-highlight/diff.lang
/usr/share/source-highlight/docbook.outlang
/usr/share/source-highlight/erlang.lang
/usr/share/source-highlight/errors.lang
/usr/share/source-highlight/esc.outlang
/usr/share/source-highlight/esc.style
/usr/share/source-highlight/esc256.outlang
/usr/share/source-highlight/esc256.style
/usr/share/source-highlight/extreme_comment.lang
/usr/share/source-highlight/extreme_comment2.lang
/usr/share/source-highlight/extreme_comment3.lang
/usr/share/source-highlight/feature.lang
/usr/share/source-highlight/fixed-fortran.lang
/usr/share/source-highlight/flex.lang
/usr/share/source-highlight/fortran.lang
/usr/share/source-highlight/function.lang
/usr/share/source-highlight/glsl.lang
/usr/share/source-highlight/go.lang
/usr/share/source-highlight/groff_man.outlang
/usr/share/source-highlight/groff_mm.outlang
/usr/share/source-highlight/groff_mm_color.outlang
/usr/share/source-highlight/groovy.lang
/usr/share/source-highlight/haskell.lang
/usr/share/source-highlight/haskell_literate.lang
/usr/share/source-highlight/haxe.lang
/usr/share/source-highlight/html.lang
/usr/share/source-highlight/html.outlang
/usr/share/source-highlight/html5.outlang
/usr/share/source-highlight/html5_common.outlang
/usr/share/source-highlight/html_common.outlang
/usr/share/source-highlight/html_notfixed.outlang
/usr/share/source-highlight/html_ref.outlang
/usr/share/source-highlight/html_simple.lang
/usr/share/source-highlight/htmlcss.outlang
/usr/share/source-highlight/htmltable.outlang
/usr/share/source-highlight/htmltablelinenum.outlang
/usr/share/source-highlight/islisp.lang
/usr/share/source-highlight/java.lang
/usr/share/source-highlight/javadoc.outlang
/usr/share/source-highlight/javalog.lang
/usr/share/source-highlight/javalog.style
/usr/share/source-highlight/javascript.lang
/usr/share/source-highlight/json.lang
/usr/share/source-highlight/json.style
/usr/share/source-highlight/key_string.lang
/usr/share/source-highlight/lang.map
/usr/share/source-highlight/langdef.lang
/usr/share/source-highlight/latex.lang
/usr/share/source-highlight/latex.outlang
/usr/share/source-highlight/latexcolor.outlang
/usr/share/source-highlight/ldap.lang
/usr/share/source-highlight/lilypond.lang
/usr/share/source-highlight/lilypond.style
/usr/share/source-highlight/lisp.lang
/usr/share/source-highlight/log.lang
/usr/share/source-highlight/logtalk.lang
/usr/share/source-highlight/lsm.lang
/usr/share/source-highlight/lua.lang
/usr/share/source-highlight/m4.lang
/usr/share/source-highlight/makefile.lang
/usr/share/source-highlight/manifest.lang
/usr/share/source-highlight/mediawiki.outlang
/usr/share/source-highlight/mono-alt.css
/usr/share/source-highlight/mono.css
/usr/share/source-highlight/nohilite.lang
/usr/share/source-highlight/number.lang
/usr/share/source-highlight/odf.outlang
/usr/share/source-highlight/opa.lang
/usr/share/source-highlight/outlang.lang
/usr/share/source-highlight/outlang.map
/usr/share/source-highlight/oz.lang
/usr/share/source-highlight/pascal.lang
/usr/share/source-highlight/pc.lang
/usr/share/source-highlight/perl.lang
/usr/share/source-highlight/php.lang
/usr/share/source-highlight/po.lang
/usr/share/source-highlight/postscript.lang
/usr/share/source-highlight/prolog.lang
/usr/share/source-highlight/properties.lang
/usr/share/source-highlight/proto.lang
/usr/share/source-highlight/python.lang
/usr/share/source-highlight/r.lang
/usr/share/source-highlight/r.style
/usr/share/source-highlight/ruby.lang
/usr/share/source-highlight/s.lang
/usr/share/source-highlight/scala.lang
/usr/share/source-highlight/scheme.lang
/usr/share/source-highlight/script_comment.lang
/usr/share/source-highlight/sexp.outlang
/usr/share/source-highlight/sh.lang
/usr/share/source-highlight/sh_acid.css
/usr/share/source-highlight/sh_berries-dark.css
/usr/share/source-highlight/sh_berries-light.css
/usr/share/source-highlight/sh_bipolar.css
/usr/share/source-highlight/sh_blacknblue.css
/usr/share/source-highlight/sh_bright.css
/usr/share/source-highlight/sh_contrast.css
/usr/share/source-highlight/sh_darkblue.css
/usr/share/source-highlight/sh_darkness.css
/usr/share/source-highlight/sh_desert.css
/usr/share/source-highlight/sh_dull.css
/usr/share/source-highlight/sh_easter.css
/usr/share/source-highlight/sh_emacs.css
/usr/share/source-highlight/sh_golden.css
/usr/share/source-highlight/sh_greenlcd.css
/usr/share/source-highlight/sh_ide-anjuta.css
/usr/share/source-highlight/sh_ide-codewarrior.css
/usr/share/source-highlight/sh_ide-devcpp.css
/usr/share/source-highlight/sh_ide-eclipse.css
/usr/share/source-highlight/sh_ide-kdev.css
/usr/share/source-highlight/sh_ide-msvcpp.css
/usr/share/source-highlight/sh_kwrite.css
/usr/share/source-highlight/sh_matlab.css
/usr/share/source-highlight/sh_navy.css
/usr/share/source-highlight/sh_nedit.css
/usr/share/source-highlight/sh_neon.css
/usr/share/source-highlight/sh_night.css
/usr/share/source-highlight/sh_pablo.css
/usr/share/source-highlight/sh_peachpuff.css
/usr/share/source-highlight/sh_print.css
/usr/share/source-highlight/sh_rand01.css
/usr/share/source-highlight/sh_the.css
/usr/share/source-highlight/sh_typical.css
/usr/share/source-highlight/sh_vampire.css
/usr/share/source-highlight/sh_vim-dark.css
/usr/share/source-highlight/sh_vim.css
/usr/share/source-highlight/sh_whatis.css
/usr/share/source-highlight/sh_whitengrey.css
/usr/share/source-highlight/sh_zellner.css
/usr/share/source-highlight/slang.lang
/usr/share/source-highlight/sml.lang
/usr/share/source-highlight/spec.lang
/usr/share/source-highlight/sql.lang
/usr/share/source-highlight/style.defaults
/usr/share/source-highlight/style.lang
/usr/share/source-highlight/style2.style
/usr/share/source-highlight/style3.style
/usr/share/source-highlight/symbols.lang
/usr/share/source-highlight/tcl.lang
/usr/share/source-highlight/texinfo.lang
/usr/share/source-highlight/texinfo.outlang
/usr/share/source-highlight/texinfo.style
/usr/share/source-highlight/tml.lang
/usr/share/source-highlight/tml_formatting.lang
/usr/share/source-highlight/tml_formatting_all.lang
/usr/share/source-highlight/tml_glue.lang
/usr/share/source-highlight/tml_macrolinks.lang
/usr/share/source-highlight/tml_macros.lang
/usr/share/source-highlight/tml_macros1.lang
/usr/share/source-highlight/tml_macros2.lang
/usr/share/source-highlight/tml_macrosdelayed1.lang
/usr/share/source-highlight/tml_macrosdelayed2.lang
/usr/share/source-highlight/tml_macrosdelayed3.lang
/usr/share/source-highlight/tml_macrotokens.lang
/usr/share/source-highlight/todo.lang
/usr/share/source-highlight/upc.lang
/usr/share/source-highlight/url.lang
/usr/share/source-highlight/vala.lang
/usr/share/source-highlight/vbscript.lang
/usr/share/source-highlight/xhtml.css
/usr/share/source-highlight/xhtml.outlang
/usr/share/source-highlight/xhtml_common.outlang
/usr/share/source-highlight/xhtml_notfixed.outlang
/usr/share/source-highlight/xhtmlcss.outlang
/usr/share/source-highlight/xhtmltable.outlang
/usr/share/source-highlight/xml.lang
/usr/share/source-highlight/xorg.lang
/usr/share/source-highlight/zsh.lang

References

Summary

In this tutorial we learn how to install source-highlight on CentOS 8 using yum and dnf.