T3HIGHLIGHT(1)
β¨ T3HIGHLIGHT β¨
okay bestie, welcome to the t3highlight(1) glow-up π this is the source highlighter page, section 1 of the manual, and we are about to make your source files look absolutely stunning. no cap.
πΈ NAME πΈ
t3highlight β create a syntax highlighted document from a source file. yes, that's the whole job. and she ate. π
π SYNOPSIS π
t3highlight [OPTION]... [FILE]
π¦ DESCRIPTION π¦
So here's the vibe: t3highlight reads a source file, and then it creates a syntax highlighted document out of it. That's it. That's the plot. iconic, honestly. β¨
π OPTIONS π
t3highlight accepts the following options, and yes we're going through every single one because every single one matters:
-dtype,--document-type=type β Some styles define multiple document types, and this lets you pick a specific one instead of just accepting the default. Example time: thehtmlstyle that ships witht3highlightgives you thestandalone,separate-cssandrawstyles. By default the first one (standalone) gets chosen. Wanna know what document types exist? Run the-D/--list-document-typesoption, bestie. π-D,--list-document-typesβ Shows you a list of all the available document types for the output style you selected, and then exits. short and sweet. π-llang,--language=lang β Use source language lang for the highlighting. Curious which languages are available? That's the-L/--listoption's whole moment. π«Ά--language-file=file β Use the file file for highlighting instead. This one lets you load highlighting patterns directly from a file rather than grabbing a named language out of thelang.mapfile. lowkey perfect when you're developing brand-new highlighting patterns and you want to test them. π§-L,--listβ Shows a list of all the available source languages and output styles, then exits. the full menu, fr fr. π-sstyle,--style=style β Use output style style to create the output document. The default is theescstyle, which uses escape sequences to give you colored output right there in the terminal. Want the full list of styles?-L/--listhas you covered. π-ttag,--tag=tag β Okay so the header and footer, as defined by the document style, can contain tag references written in the form%{name}. The tagsnameandcharsetare always defined, but a document style can define even more. This option lets you specify extra values, or override the predefined tags. tag has to be in the formname=value.
Any tags in the header or footer that never got defined? They just get removed. Cute example: the css tag used in the separate-css document style of the html output style. That one lets you insert whatever CSS style sheet URL you want into the generated file. π
-v,--verboseβ Prints verbose warning messages. for when you want all the tea. π
π FILES π
libt3highlight β which is what t3highlight leans on to actually do the highlighting β and t3highlight itself both go looking for their data files in the directory $HOME/.local/share/libt3highlight and /usr/share/libt3highlight? (where that ? is a digit indicating the binary API version). π
And the documentation on how to write highlighting patterns and style files is normally installed in /usr/share/doc/libt3highlight. go read it, bestie, it's giving educational. π
π BUGS π
If you think you found a bug, please first check that you're running the latest version of libt3highlight <http://os.ghalkes.nl/libt3highlight.html>. And when you report bugs, please include a minimal example that demonstrates the problem β not me getting a bug report with zero repro steps, we don't do that here. π
π AUTHOR π
G.P. Halkes <libt3highlight@ghalkes.nl>
β COPYRIGHT β
Copyright Β© 2012 G.P. Halkes
libt3highlight is licensed under the GNU General Public License version 3.
For more details on the license, see the file COPYING in the documentation directory. On Un*x systems this is usually /usr/share/doc/libt3highlight.
and that's the whole page, bestie!! π«Ά This was Version 0.5.0 of t3highlight, dated 2013/03/21 β slay, honestly, she's been serving since 2013 and she still looks this good. πβ¨π go highlight something pretty.
π¦ where this page comes from
- debian bookworm: t3highlight 0.5.0-1 Β· GPL-3.0-only
- debian trixie: t3highlight 0.5.0-1 Β· GPL-3.0-only
- ubuntu jammy: t3highlight 0.5.0-1 Β· GPL-3.0-only
- ubuntu noble: t3highlight 0.5.0-1 Β· GPL-3.0-only
- ubuntu resolute: t3highlight 0.5.0-1build1 Β· GPL-3.0-only
- ubuntu stonking: t3highlight 0.5.0-3 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms