diff options
| author | RATDAD <lambda@disroot.org> | 2025-12-19 02:13:32 -0500 |
|---|---|---|
| committer | RATDAD <lambda@disroot.org> | 2025-12-19 02:13:32 -0500 |
| commit | 714cb1569999b4a51c8bfd24b17736f82f64100c (patch) | |
| tree | 6735e6d52347756bc6e313bbc81e2c80eea4d549 /opt/highlight.sh | |
| parent | 50f0b6075edb49ffc09090d0ee71391f44c64daf (diff) | |
| download | cgit-docker-714cb1569999b4a51c8bfd24b17736f82f64100c.tar.gz cgit-docker-714cb1569999b4a51c8bfd24b17736f82f64100c.tar.bz2 cgit-docker-714cb1569999b4a51c8bfd24b17736f82f64100c.zip | |
Diffstat (limited to 'opt/highlight.sh')
| -rw-r--r-- | opt/highlight.sh | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/opt/highlight.sh b/opt/highlight.sh deleted file mode 100644 index d9e0ace..0000000 --- a/opt/highlight.sh +++ /dev/null @@ -1,25 +0,0 @@ -# -# -# Syntax Highlighting -# You should mount your own (most likely better) syntax script here. - -BASENAME="$1" -EXTENSION="${BASENAME##*.}" - -[ "${BASENAME}" = "${EXTENSION}" ] && EXTENSION=txt -[ -z "${EXTENSION}" ] && EXTENSION=txt - -[ "${BASENAME%%.*}" = "Makefile" ] && EXTENSION=mk - -# User note: highlight v2 and v3 have different command options. -# -X is replaced by "-O xhtml" in v3. - -# If for whatever reason, this container is using EPEL5 (it shouldn't), -# use the following line instead of the bottom line. -# exec highlight --force -f -I -X -S "$EXTENSION" 2>/dev/null - -# EPEL6 version with no inline css -# exec highlight --force -f -I -O xhtml -S "EXTENSION" 2>/dev/null - -# highlight v3 is available on EPEL6. -exec highlight --force --inline-css -f -I -O xhtml -S "EXTENSION" 2>/dev/null
\ No newline at end of file |
