syntax-highlightingmc

Syntax highlighting in Midnight Commander viewer


I would like mc viewer (mcview, run by F3 key) to highlight my C++ code. Is it possible?

For editing (mcedit, F4 key) I am using vim with its own syntax highlighting. For viewing, I can't find such an option. There is

editor_syntax_highlighting=1

which can be changed in ~/.mc/ini or ~/.config/mc/ini but it's obviously related to the built-in mcedit, not the viewer. Is there something like viewer_syntax_highlighting=1 or any other way to highlight syntax in viewer?


Solution

  • Viewer doesn't do syntax highlighting, only Editor does.