summaryrefslogtreecommitdiffstats
path: root/custom/conf
diff options
context:
space:
mode:
authorMai-Lapyst <mai-lapyst@noreply.codeberg.org>2024-03-25 16:05:01 +0100
committerMai-Lapyst <mai-lapyst@noreply.codeberg.org>2024-03-25 16:05:01 +0100
commit2b6546adc954d450a9c6befccd407ce2ca1636a0 (patch)
tree58b82ebcc15fe6ae9f119208d543dc6e60d1dddf /custom/conf
parentRemove unneeded case for a trailing dot (diff)
downloadforgejo-2b6546adc954d450a9c6befccd407ce2ca1636a0.tar.xz
forgejo-2b6546adc954d450a9c6befccd407ce2ca1636a0.zip
Add setting to restrict count of lines being displayed & only highlight those lines
Diffstat (limited to 'custom/conf')
-rw-r--r--custom/conf/app.example.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini
index b3896bc31c..91f86da5f8 100644
--- a/custom/conf/app.example.ini
+++ b/custom/conf/app.example.ini
@@ -2338,6 +2338,8 @@ LEVEL = Info
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Set the maximum number of characters in a mermaid source. (Set to -1 to disable limits)
;MERMAID_MAX_SOURCE_CHARACTERS = 5000
+;; Set the maximum number of lines allowed for a filepreview. (Set to -1 to disable limits; set to 0 to disable the feature)
+;FILEPREVIEW_MAX_LINES = 50
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;