Xshell Forum

XSHELL - Syntax highlighting

Last post: Sunday, January 4, 2009 3:17 PM by Jan, 7 reply

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

XSHELL - Syntax highlighting

 
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
Wednesday, December 10, 2008 11:19 AM - Daniel

Re: XSHELL - Syntax highlighting

 
Try this:
http://www.cyberciti.biz/faq/turn-on-or-off-color-syntax-highlighting-in-vi-or-vim/
Wednesday, December 10, 2008 12:10 PM - Prash

Re: Re: XSHELL - Syntax highlighting

 
Yah googled it, didn't work though.
Wednesday, December 10, 2008 4:21 PM - Daniel

Re: Re: Re: XSHELL - Syntax highlighting

 
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


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

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

 
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.
Tuesday, December 16, 2008 4:27 PM - Brian Blake

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

 
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.

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

Re: XSHELL - Syntax highlighting

 
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".

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

Re: Re: XSHELL - Syntax highlighting

 
Dan,

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