Prezto: syntax-highlighting does not appear to work

Created on 27 Sep 2012  路  7Comments  路  Source: sorin-ionescu/prezto

As per instructions, added
zstyle ':prezto:module:syntax-highlighting' color 'yes'

to ~/.zpreztorc. Tried as well in ~/.zprofile

The highlighting does not appear to be active...I need a little guidance as to where to look for this. I put an echo before the line and it is getting executed. I also tried to execute on command line and it seems to do nothing.

Discussion

Most helpful comment

This happened to me as well since I followed the instructions on this page
prezto syntax-highlighting

zsh / prezto beginners would easily miss out on loading the modules part

zstyle ':prezto:load' pmodule \
  'syntax-highlighting' \

I think this cabe quickly added to the prezto syntax-highlighting page.

All 7 comments

You don't have to do that. Colour is enabled globally; just don't turn it off. You just have to load the syntax-highlighting module in _zpreztorc_. I did notice that you have zsh-syntax-highlighting added as a submodule in YADR. Maybe, you're loading it twice. Maybe, you're breaking it.

The yadr module was working. i completely removed it and tried to load the prezto module in hopes that I could nuke the yadr stuff. But alas, it is not working. The syntax highlighting I"m talking about highlights every part of the command you're currently typing. Is that what you're seeing in prezto?

screenshot

I do indeed.

Highlighting

Create a new user account and try Prezto on its own outside of YADR.

Ok will do, thanks sorin.

Here are the modules I load in my zpreztorc.

zstyle ':prezto:load' pmodule \
  'environment' \
  'terminal' \
  'editor' \
  'history' \
  'directory' \
  'spectrum' \
  'gnu-utility' \
  'utility' \
  'completion' \
  'git' \
  'archive' \
  'osx' \
  'perl' \
  'python' \
  'ruby' \
  'fasd' \
  'node' \
  'syntax-highlighting' \
  'history-substring-search' \
  'prompt'

This happened to me as well since I followed the instructions on this page
prezto syntax-highlighting

zsh / prezto beginners would easily miss out on loading the modules part

zstyle ':prezto:load' pmodule \
  'syntax-highlighting' \

I think this cabe quickly added to the prezto syntax-highlighting page.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

voanhduy1512 picture voanhduy1512  路  3Comments

entertvl picture entertvl  路  3Comments

lokesh-krishna picture lokesh-krishna  路  5Comments

aliostad picture aliostad  路  4Comments

belak picture belak  路  4Comments