For most modes, font-lock is already set up and just needs to be turned on. This can be done by adding the line:
to your init.el. You can turn it on for the current buffer and session only by M-x font-lock-mode. See the file etc/sample.init.el for more information.
Syntax Highlighting from the
Remember to save options.