From 5171ec524ffab6a27e4d68018ab6872beba4f093 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Fri, 22 May 2020 02:23:18 +0000 Subject: [PATCH] Document ZSH_HIGHLIGHT_MAXLENGTH. Fixes #698. --- docs/highlighters.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/highlighters.md b/docs/highlighters.md index d0c9332..bb72e54 100644 --- a/docs/highlighters.md +++ b/docs/highlighters.md @@ -18,6 +18,23 @@ Syntax highlighting is done by pluggable highlighters: [6]: highlighters/line.md +Highlighter-independent settings +-------------------------------- + +By default, all command lines are highlighted. However, it is possible to +prevent command lines longer than a fixed number of characters from being +highlighted by setting the variable `${ZSH_HIGHLIGHT_MAXLENGTH}` to the maximum +length (in characters) of command lines to be highlighter. This is useful when +editing very long comand lines (for example, with the [`fned`][fned] utility +function). Example: + +[fned]: http://zsh.sourceforge.net/Doc/Release/User-Contributions.html#index-zed + +```zsh +ZSH_HIGHLIGHT_MAXLENGTH=512 +``` + + How to activate highlighters ----------------------------