|
#1
| |||
| |||
|
Hi everyone- I'm having a bit of a problem... It seems that somehow the first half of a .php file I had been working on has gone missing. When I open it in textedit it opens with formatting and everything, and it appears that all the linebreaks have been removed, along with about the first half of the code. The strange thing is, when I run it in firefox it processes normally as if it is reading the code and I just can't see it. So, I'm hoping this means that somewhere on my computer is a chunk of this file that I can retrieve, because it would really suck to try to rewrite it all. Let me know if this has happened to anyone else, or if you have any questions that might help troubleshoot this! Thanks |
|
#2
| |||
| |||
|
Nevermind, I found out that opening it through the terminal using vim allows me to read the entire contents of the .php file. So, if anyone else has this problem, I suggest trying that. Oh also, I'm running OSX Leopard 10.5.6 |
|
#3
| ||||
| ||||
|
There are a bunch of coding text editors that are recommended for things like editing php files. I use TextMate - which si excellent if a bit pricey. I picked it up as part of a MacHeist bundle.
__________________ How to ask questions sensibly --Macbook unibody 2.4ghz, 4gb ram, 500gb HD, glossy, OS 10.6.1 --Homebrew PC, iPhone, many hard drives, Nikon D200 |
|
#4
| ||||
| ||||
|
Taco HTML Edit is also good.
__________________ Be sure to thank the person that helps you! MacBook 2.1 GHz , 250 GB, 2 GB, OS 10.6.1 PowerMac G5 Dual 2.3 GHz, 750 GB, 1 GB, OS 10.5.8 Server PowerMac G4 Dual 1.25 GHz, 120 GB, 100 GB RAID, 1.5 GB, OS 10.5.8 Server iPod Classic Black 120 GB Favorite Bands: Anberlin, Five Iron Frenzy My Site |
|
#5
| ||||
| ||||
|
I'm a fan of TextWrangler myself. It's free. I'll bet the problem with TextEdit is that it was parsing the file as HTML. TextEdit can open and edit HTML files, too, and this sometimes leads to strange and annoying results. |
|
#6
| ||||
| ||||
|
I concur with Mikuro. I like TextEdit, but trying to open an html file results in TextEdit actually trying to render the HTML as Safari would instead of showing the raw text. I second the motion for TextWrangler (and its big brother, BBEdit).
__________________ Mac mini 2.0GHz 10.6.2 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display MacBook 2.0GHz Core 2 Duo - White 10.6.2 • 4GB • 250GB • CD-RW/DVD-ROM iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb http://www.jeffhoppe.com |
|
#7
| ||||
| ||||
|
Or Smultron - also a nice and free editor - I've been using that as my main plain editor for quite a while now. Or SubEthaEdit - older versions are free.
__________________ MacBook Pro | Dell Mini Inspiron 9 | Mac Mini | Newton 2000 | iPhone | @Work : Dell D620 & 2x20" + a lot of Macs | Workstation, VC & Fusion Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. ~ Samuel Clemens | Rants | Photos |
|
#8
| ||||
| ||||
|
although i usually prefer using some fullblown editor for coding, i'm using textedit all the time for quick previewing of files, among other things. just turn off the html-parsing feature in TextEdits' prefs: (that is, turn ON the 'igonre rich text commands...' option) |
![]() |
| Bookmarks |
| Tags |
| .php, delete, format, missing, textedit |
| Thread Tools | |
|
|