From 0ff354b44b6e6e47c8d64086ec926317edbf6e23 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Thu, 12 May 2016 19:28:17 +0000 Subject: [PATCH] docs: Namespace highlighters' styles. Follow-up to 217669270418fbc6ae98836b09357b5ba8f85b7d. Part of #306. --- docs/highlighters.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/highlighters.md b/docs/highlighters.md index 24fc6da..fa8e8e5 100644 --- a/docs/highlighters.md +++ b/docs/highlighters.md @@ -69,13 +69,13 @@ To create your own `myhighlighter` highlighter: be highlighted and the `ZSH_HIGHLIGHT_STYLES` key to use. Define the default style for that key in the highlighter script outside of any function with `: ${ZSH_HIGHLIGHT_STYLES[key]:=value}`, being sure to prefix - the key with your highlighter name. For example: + the key with your highlighter name and a colon. For example: - : ${ZSH_HIGHLIGHT_STYLES[myhighlighter-aurora]:=fg=green} + : ${ZSH_HIGHLIGHT_STYLES[myhighlighter:aurora]:=fg=green} _zsh_highlight_myhighlighter_highlighter() { # Colorize the whole buffer with the 'aurora' style - _zsh_highlight_add_highlight 0 $#BUFFER myhighlighter-aurora + _zsh_highlight_add_highlight 0 $#BUFFER myhighlighter:aurora } * Activate your highlighter in `~/.zshrc`: