docs: Update FAQ answer per changes on this branch.
This commit is contained in:
		
							parent
							
								
									a8b842bddb
								
							
						
					
					
						commit
						29c6834e70
					
				
							
								
								
									
										16
									
								
								README.md
								
								
								
								
							
							
						
						
									
										16
									
								
								README.md
								
								
								
								
							| 
						 | 
					@ -27,11 +27,23 @@ FAQ
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Why must `zsh-syntax-highlighting.zsh` be sourced at the end of the `.zshrc` file?
 | 
					### Why must `zsh-syntax-highlighting.zsh` be sourced at the end of the `.zshrc` file?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
`zsh-syntax-highlighting.zsh` wraps ZLE widgets.  It must be sourced after all
 | 
					zsh-syntax-highlighting works by hooking into the Zsh Line Editor (ZLE) and
 | 
				
			||||||
 | 
					computing syntax highlighting for the command-line buffer as it stands at the
 | 
				
			||||||
 | 
					time z-sy-h's hook is invoked.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					In zsh 5.2 and older,
 | 
				
			||||||
 | 
					`zsh-syntax-highlighting.zsh` hooks into ZLE by wrapping ZLE widgets.  It must be sourced after all
 | 
				
			||||||
custom widgets have been created (i.e., after all `zle -N` calls and after
 | 
					custom widgets have been created (i.e., after all `zle -N` calls and after
 | 
				
			||||||
running `compinit`).  Widgets created later will work, but will not update the
 | 
					running `compinit`) in order to be able to wrap all of them.
 | 
				
			||||||
 | 
					Widgets created after z-sy-h is sourced will work, but will not update the
 | 
				
			||||||
syntax highlighting.
 | 
					syntax highlighting.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					In zsh 5.3 and newer,
 | 
				
			||||||
 | 
					zsh-syntax-highlighting uses the `add-zle-hook-widget` facility to install
 | 
				
			||||||
 | 
					a `zle-line-pre-redraw` hook.  Hooks are run in order of registration,
 | 
				
			||||||
 | 
					therefore, z-sy-h must be sourced (and register its hook) after anything else
 | 
				
			||||||
 | 
					that adds hooks that modify the command-line buffer.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### How are new releases announced?
 | 
					### How are new releases announced?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
There is currently no "push" announcements channel.  However, the following
 | 
					There is currently no "push" announcements channel.  However, the following
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue