about summary refs log tree commit diff
path: root/Doc/Zsh/mod_hlgroup.yo
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2024-02-15 14:50:56 +0100
committerOliver Kiddle <opk@zsh.org>2024-02-15 14:50:59 +0100
commit173c0b14ab9ad1f54e74a2573d8212a720df1762 (patch)
tree152fef7a325a7dbd57d5fdda5765a444a9743cd5 /Doc/Zsh/mod_hlgroup.yo
parent14c230dc3216b7fe0f63d797347e14178d4ede2b (diff)
downloadzsh-173c0b14ab9ad1f54e74a2573d8212a720df1762.tar.gz
zsh-173c0b14ab9ad1f54e74a2573d8212a720df1762.tar.xz
zsh-173c0b14ab9ad1f54e74a2573d8212a720df1762.zip
52535: documentation for highlight groups and layers
Diffstat (limited to 'Doc/Zsh/mod_hlgroup.yo')
-rw-r--r--Doc/Zsh/mod_hlgroup.yo25
1 files changed, 25 insertions, 0 deletions
diff --git a/Doc/Zsh/mod_hlgroup.yo b/Doc/Zsh/mod_hlgroup.yo
new file mode 100644
index 000000000..efe8934a1
--- /dev/null
+++ b/Doc/Zsh/mod_hlgroup.yo
@@ -0,0 +1,25 @@
+COMMENT(!MOD!zsh/hlgroup
+Alternative views of highlighting groups
+!MOD!)
+The tt(zsh/hlgroup) module defines special parameters that represent
+highlighting groups in different forms to ease the use of the groups when
+configuring other tools.
+
+In each case, these are readonly associative arrays where accessing elements
+uses values from the underlying tt(.zle.hlgroups) variable.
+
+startitem()
+vindex(.zle.esc)
+item(tt(.zle.esc))(
+This associative array contains the literal escape sequences used to apply the
+highlighting for each group. An example use would be when setting the
+tt(LESS_TERMCAP_xx) environment variables for the tt(less) pager.
+)
+vindex(.zle.sgr)
+item(tt(.zle.sgr))(
+Where highlighting makes use of CSI escape sequences, this parameter contains
+the "Select Graphic Rendition" number sequence. This is useful with, for
+example the tt(GREP_COLORS) and  tt(LSCOLORS) environment variables and the
+tt(list-colors) style.
+)
+enditem()