.. zsh-module-meta::
   :name: zsh/hlgroup
   :summary: Alternative views of highlighting groups

The ``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 ``.zle.hlgroups`` variable.

.. index:: single: .zle.esc; Variable

``.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
    ``LESS_TERMCAP_xx`` environment variables for the ``less`` pager.
    

.. index:: single: .zle.sgr; Variable

``.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 ``GREP_COLORS`` and  ``LSCOLORS`` environment variables and the
    ``list-colors`` style.
    

