EnglishFrenchSpanish

OnWorks favicon

highlight - Online in the Cloud

Run highlight in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command highlight that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


Highlight - a universal sourcecode to formatted text converter

SYNOPSIS


highlight [OPTIONS]... [FILES]...

DESCRIPTION


Highlight converts sourcecode to HTML, XHTML, RTF, ODT, LaTeX, TeX, BBCode, SVG, XTERM or
ANSI escape sequences. There are several colour themes available. Highlight recognizes
keywords, numbers, strings, comments, symbols and preprocessor directives. It supports
about 160 programming languages, which are defined in Lua scripts.

It's easily possible to enhance highlight's database of programming languages and colour
themes. See the README file for details.

General options


-B, --batch-recursive=<wildcard>
convert all files matching the wildcard (uses recursive search)

-D, --data-dir=<path>
set path to highlight data directory (deprecated)

--config-file=<file>
set path to a lang or theme file

-h, --help
print this help

-i, --input=<file>
name of input file

-o, --output=<file>
name of output file

-d, --outdir=<output directory>
name of output directory

-P, --progress
print progress bar in batch mode

-S, --syntax=<type>
set type of source code, necessary if input file suffix is missing

-v, --verbose
print debug info to stderr

-p, --list-langs
list installed language definitions (deprecated)

-q, --quiet
supress progress info in batch mode

-w, --list-themes
list installed themes (deprecated)

--force
generate output if input syntax is unknown

--list-scripts=<type>
list installed scripts <type>=[langs, themes, plugins]

--plug-in=<script>
execute Lua plug-in script; repeat option to apply multiple plug-ins

--plug-in-read
set input file for a plug-in (e.g. 'tags')

--print-config
print path configuration

--print-style
print stylesheet only (see --style-outfile)

--skip=<list>
ignore listed unknown file types (Example: --skip='bak;c~;h~')

--start-nested=<lang>
define nested language which starts input without opening delimiter

--validate-input
test if input is a valid text file

--version
print version and copyright info

Output formatting options


-O, --out-format=<format>
output file in given format <format>=[html, xhtml, latex, tex, rtf, odt, ansi,
xterm256, bbcode, svg]

-c, --style-outfile=<file>
name of style definition file or output to stdout, if "stdout" is given as file
argument

-T, --doc-title
document title

-e, --style-infile=<file>
name of file to be included in style-outfile

-f, --fragment
omit header and footer of the output document

-F, --reformat=<style>
reformat output in given style. <style>=[allman, banner, gnu, java, kr, linux,
stroustrup, whitesmith, google, pico, lisp]

-I, --include-style
include style definition in output

-J, --line-length=<num>
line length before wrapping (see -W, -V)

-j, --line-number-length=<num>
line number length incl. left padding

-k, --font=<font>
set font (specific to output format)

-K, --font-size=<num?>
set font size (specific to output format)

-l, --line-numbers
print line numbers in output file

-m, --line-number-start=<cnt>
start line numbering with cnt (assumes -l)

-s, --style=<style name>
set highlighting style (see --list-themes)

-t --replace-tabs=<num>
replace tabs by num spaces

-u, --encoding=<enc>
set output encoding which matches input file encoding; omit encoding information if
set to "NONE"

-V, --wrap-simple
wrap long lines without indenting function parameters and statements

-W, --wrap
wrap long lines (use with caution)

-z, --zeroes
fill leading space of line numbers with zeroes

--kw-case=<upper|lower|capitalize>
output all keywords in given case if language is not case sensitive

--delim-cr
set CR as end-of-line delimiter (MacOS 9)

--no-trailing-nl
omit trailing newline

--wrap-no-numbers
omit line numbers of wrapped lines (assumes -l)

(X)HTML OPTIONS


-a, --anchors
attach anchors to line numbers (HTML only)

-y, --anchor-prefix=<str>
set anchor name prefix

-N, --anchor-filename
use input file name as anchor name

-C, --print-index
print index file with links to all output files

-n, --ordered-list
print lines as ordered list items

--class-name=<str>
set CSS class name prefix; omit class name if set to "NONE"

--inline-css
output CSS within each tag (verbose output)

--enclose-pre
enclose fragmented output with pre tag (assumes -f)

LaTeX OPTIONS


-b, --babel
disable Babel package shorthands

-r, --replace-quotes
replace double quotes by \dq

--pretty-symbols
improve appearance of brackets and other symbols

RTF OPTIONS


-x, --page-size=<size>
set page size, <size>=[a3, a4, a5, b4, b5, b6, letter]

--char-styles
include character stylesheets

SVG OPTIONS


--height=<h>
set image height (units allowed)

--width=<w>
set image size (see --height)

GNU SOURCE-HIGHLIGHT COMPATIBILITY OPTIONS


--doc create stand alone document

--no-doc
cancel the --doc option

--css=filename
the external style sheet filename

--src-lang=STRING
source language

-t, --tab=INT
specify tab length

-n, --line-number[=0]
number all output lines, optional padding

--line-number-ref[=p]
number all output lines and generate an anchor, made of the specified prefix
p + the line number (default='line')

--output-dir=path
output directory

--failsafe
if no language definition is found for the input, it is simply copied to the output

If no in- or output files are specified, stdin and stdout will be used for in- or output.
HTML will be generated unless an other output format is given. Style definitions are
stored in highlight.css (HTML, XHTML, SVG) or highlight.sty (LaTeX, TeX) if neither -c nor
-I is given. Reformatting code (-F) will only work with C, C++, C# and Java input files.

Use highlight online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Psi
    Psi
    Psi is cross-platform powerful XMPP
    client designed for experienced users.
    There are builds available for MS
    Windows, GNU/Linux and macOS.. Audience:
    End Users...
    Download Psi
  • 2
    Blobby Volley 2
    Blobby Volley 2
    Official continuation of the famous
    Blobby Volley 1.x arcade game..
    Audience: End Users/Desktop. User
    interface: OpenGL, SDL. Programming
    Language: C++, Lua. C...
    Download Blobby Volley 2
  • 3
    SuiteCRM
    SuiteCRM
    SuiteCRM is the award-winning Customer
    Relationship Management (CRM)
    application brought to you by authors
    and maintainers, SalesAgility. It is the
    world�s mos...
    Download SuiteCRM
  • 4
    Poweradmin
    Poweradmin
    Poweradmin is a web-based DNS
    administration tool for PowerDNS server.
    The interface has full support for most
    of the features of PowerDNS. It has full
    support...
    Download Poweradmin
  • 5
    Gin Web Framework
    Gin Web Framework
    Gin is an incredibly fast web framework
    written in Golang that can perform up to
    40 times faster, thanks to its
    martini-like API and custom version of
    httprout...
    Download Gin Web Framework
  • 6
    CEREUS LINUX
    CEREUS LINUX
    CEREUS LINUX basado en MX LINUX con
    varios entornos de escritorios. This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/cereu...
    Download CEREUS LINUX
  • More »

Linux commands

  • 1
    aa-clickquery
    aa-clickquery
    aa-clickquery - program for querying
    click-apparmor DESCRIPTION: This program
    is used to query click-apparmor for
    information. USAGE: aa-clickquery
    --click-fra...
    Run aa-clickquery
  • 2
    aa-exec-click
    aa-exec-click
    aa-exec-click - program for executing
    click packages under confinement
    DESCRIPTION: This program is used to
    execute click package under AppArmor
    confinement. I...
    Run aa-exec-click
  • 3
    cpio
    cpio
    cpio - copy files to and from archives ...
    Run cpio
  • 4
    cpipe
    cpipe
    cpipe - copy stdin to stdout while
    counting bytes and reporting progress ...
    Run cpipe
  • 5
    FvwmSave
    FvwmSave
    FvwmSave - the Fvwm desktop-layout
    saving module ...
    Run FvwmSave
  • 6
    FvwmSave1
    FvwmSave1
    FvwmSave - the FVWM desktop-layout
    saving module ...
    Run FvwmSave1
  • More »

Ad