I would like to use VIM's syntax/lexical highlighting/coloring in order to color the command line in zsh - and if possible highlight it as well. (For zsh: see "www.zsh.org"). I would actually hope that this can be done using VIM's zsh' syntax file ("./vimXX/syntax/zsh.vim")
It seems to me that within VIM the actual VIM syntax/lexical highlighting/coloring has been programmed in the file "./vimXX/src/syntax.c".
Unfortunately, however, I am not any good at C programming. Therefore most of this "syntax.c" file seems like magic to me.
My question is: Could someone give me some idea on how this "syntax.c" file could be turned into into an external program, which takes a "zsh file" as its input, and which provides the information on the syntax/lexical highlighting/coloring of this "zsh file" as its output??
Does someone know if such an external program has ever been made?