Walksalong
2006-Oct-26 11:47 UTC
Removing/Replacing Tabs to Spaces -- Global Find and Replace
Are there any editors out there that will do a global site find and replace to change tabs to spaces? I am trying to run a larger existing Ruby site that was developed on macs to windows and I''m having some problems and I imagine it is because of the existence of tabs. Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Jean-François
2006-Oct-26 12:34 UTC
Re: Removing/Replacing Tabs to Spaces -- Global Find and Replace
Hello,> Are there any editors out there that will do a global site > find and replace to change tabs to spaces? I am trying > to run a larger existing Ruby site that was developed on > macs to windows and I'm having some problems and I > imagine it is because of the existence of tabs.Well, Ruby can do that : $ ruby -pe 'gsub(/\t/, " ")' < old_file.rb > new_file.rb assuming you want two spaces for one tab. -- Jean-François. -- À la renverse. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Mike
2006-Oct-27 10:26 UTC
Re: Removing/Replacing Tabs to Spaces -- Global Find and Replace
jEdit will search and replace through a whole directory. Also, I have moved my rails site from a PC to a Mac and never had any issues with tabs or spaces. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---