title: How to add to an associative array in zsh?
body: <p>I'm trying to change an element of a zsh associative array, but I can't find any clues on the correct syntax.</p>
  
  <p>The PHP equivalent would be</p>
  
  <p><code>$assoc['key'] = 'newvalue';
  </code></p>
  
  <p>but how can I do this in zsh?</p>
  
  <p>The documentation seems to be very confusing on this, as it assumes that once you've set up an associative array, you never want to change it.</p>
  
  <p><strong>EDIT: this is what I'm trying to do</strong></p>
  
  <p><code>% noglob ZSH_HIGHLIGHT_STYLES[globbing]='fg=yellow' 
  zsh: command not found: ZSH_HIGHLIGHT_STYLES[globbing]=fg=yellow
  </code></p>
  
  <p><code>$ZSH_HIGHLIGHT_STYLES</code> is defined by the zsh-syntax-highlighting plugin.</p>