LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-08-2006, 01:55 PM   #1
robinhood1995
Member
 
Registered: Jan 2002
Location: Ohio
Distribution: CentOS 5.2
Posts: 52

Rep: Reputation: 15
Exclamation Ansi colors not there when editing a file


Hi Y'all,

This is a wierd one to me.

I have RH8 and it has been install for a long time.

The problem is the when I create a new file with VI and I start to either shell script or do php my color codes are not displaying anymore.

Now if I take a old file that I scripted a while back the is no problem the color code is there and also for anything new I add to the file.

I tried to use telnet from another pc or Secure/CRT (which I always used before).

I set my term to either Linux or Ansi
I didn't make any changes to /etc/bashrc nor .bashrc

Any ideas on what it could be?

Thanks in advance

Last edited by robinhood1995; 04-08-2006 at 02:03 PM.
 
Old 04-08-2006, 04:15 PM   #2
fraz
Member
 
Registered: Nov 2004
Location: Edinburgh, Scotland
Distribution: Ubuntu
Posts: 149

Rep: Reputation: 15
does vi pick up the highlighting from the filename for new files? some editors will only do it on opening an existing file. that means you will need to tell the editor the format of the file manually when you create it. I'm only guessing though I use nedit not vi.
 
Old 04-08-2006, 04:24 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
insert something in the middle of file using ansi c? Thinking Programming 5 07-26-2005 01:47 PM
Editing Emacs colors? ljr2600 Mandriva 4 09-18-2004 06:50 AM
program that allows changing of number of colors in .png file? frieza Linux - Software 1 02-10-2004 12:05 AM
File editing digger Linux - Newbie 3 01-28-2004 03:42 PM
tty09 - tty12 do not show ansi colors correctly danell_fip Linux - General 1 01-12-2004 03:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration