Ssh – emacs syntax highlighting fails on the SSH client

emacssshsyntax highlightingterminal

I need to connect to a remote server by SSH to edit some documents. When I work at home, I SSH to the remote server using SSH Secure Shell and open emacs, but it doesn't fully highlight documents as I want:

Screenshot of emacs on this server

Is there any way to fix it so that syntax highlighting works like when I ssh through Cygwin?

Screenshot of emacs on Cygwin

SSH Secure Shell only has a problem with emacs; everything else works fine.

Syntax highlight works for bash

Best Answer

Adding to Gilles' line of thought, I'd suggest using Cygwin's MinTTY terminal instead of the Windows console-based one. It uses PuTTY's engine and offers a much, much better experience.

Related Question