XSHELL - Syntax highlighting [7]

XSHELL - Syntax highlighting

Wednesday, December 10, 2008 10:58 AM - Prash

How to get colors (syntax highlighting) when doing VI a text file? On some VNC session on Linux, you can see colors in text file which makes it easy to read.

Is it possible in XSHELL too? TIA!!

Program Ver. : Xshell 3.0


Re: XSHELL - Syntax highlighting

Wednesday, December 10, 2008 11:19 AM - Daniel

Try this:
http://www.cyberciti.biz/faq/turn-on-or-off-color-syntax-highlighting-in-vi-or-vim/


Re: Re: XSHELL - Syntax highlighting

Wednesday, December 10, 2008 12:10 PM - Prash

Yah googled it, didn't work though.


Re: Re: Re: XSHELL - Syntax highlighting

Wednesday, December 10, 2008 4:21 PM - Daniel

Depending on your Shell environment, you may have to use a different terminal type. Color syntax works on xterm or vt320 for me.

To change your terminal type, use the following commnad.

# export TERM=xterm

or

# export TERM=vt320




Re: Re: Re: Re: XSHELL - Syntax highlighting

Monday, December 15, 2008 10:58 AM - Prash

Didn't work me for me on Bash.

What file did you test with? I opened a .sql file and it didn't show any syntax colors.


Re: Re: Re: Re: Re: XSHELL - Syntax highlighting

Tuesday, December 16, 2008 4:27 PM - Brian Blake

You have to make sure if your VI/VIM supports syntax highlighting feature. Older VIs did not have this feature. Try opening the file on console and see if it works. If not, it is possible that your VI does not support syntax highlighting feature.



Re: XSHELL - Syntax highlighting

Sunday, December 28, 2008 5:40 PM - Dan Dascalescu

I think vi is crap and I recommend mcedit (from the Midnight Commander).

That said, try also setting the Terminal Type in Emulation -> Termina to "xterm-color" instead of the default "xterm".



Re: Re: XSHELL - Syntax highlighting

Sunday, January 4, 2009 3:17 PM - Jan

Dan,

"vi is crap"!!!
haah... better you go back to win32 notepad...


Previous views: 449