how to enable and disable syntax highlighting in vi or vim editor

vi syntax on and off

Syntax Highlighting is a feature where the readability of the displayed text is enhanced by showing certain words, phrases or keywords in differing colors or fonts. This is especially useful when viewing source code of various programming, scripting or markup languages. In fact any text with an associated grammar can have syntax highlighting. Integrated Development Environments (IDE) or Programming Editors…