mirror of
https://gitea.zaclys.com/yannic/dotfiles.git
synced 2026-05-23 19:37:28 +02:00
Preview Javascript and JSON files
This commit is contained in:
@@ -78,7 +78,7 @@ handle_mime() {
|
|||||||
local mimetype="${1}"
|
local mimetype="${1}"
|
||||||
case "${mimetype}" in
|
case "${mimetype}" in
|
||||||
# Text
|
# Text
|
||||||
text/* | */xml)
|
text/* | */xml | */json | */javascript)
|
||||||
# Syntax highlight
|
# Syntax highlight
|
||||||
if [ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]; then
|
if [ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]; then
|
||||||
exit 2
|
exit 2
|
||||||
|
|||||||
Reference in New Issue
Block a user