LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-27-2006, 02:40 PM   #1
CatalystChilde
LQ Newbie
 
Registered: Jan 2005
Posts: 18

Rep: Reputation: 0
Linux files in Windows


So, I had no problems with editing my php files in Linux. Strangely expected. Anyway, FreeBSD crashed on my Dell after it had been unplugged and out of commission for a while, so I reinstalled Windows. But not only does the FTP not lend to being able to edit the files from the host, but most of the files are still encoded for Linux. Opening them in notepad the paragraphs are all screwed up so it's hard to make heads or tails of the files without formatting it so it looks okay again. Is there something I can download for Windows that works like the editor in the KDE desktop? Or some way to change Notepad or Word? I'd also like to be able to edit the files through FTP again, though it's not much effort to just edit things on my comp and move them back.
 
Old 12-27-2006, 02:59 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Read your Linux files in wordpad (write.exe).

When you "file, save" from write.exe, it will automatically convert the file to DOS format.

when you ftp back and forth, "set bin" for binary files, or "set asc" for text files (will add cr/lf for linux to dos, will remove cr/lf for dos to linux).

'Hope that helps .. PSM
 
Old 12-27-2006, 07:13 PM   #3
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32
Don't tell me you're actually trying to write code in Notepad! Do you have some kind of masochistic streak or something?

Try jEdit. It has plenty of features, there are lots of plugins available, it's cross-platform, and it's free software. For PHP work, I like the XML and PHP Parser plugins. I believe there is an FTP plugin, but I haven't tried it. And yes, I can convert between Windows and UNIX newlines.
 
Old 12-27-2006, 08:37 PM   #4
CatalystChilde
LQ Newbie
 
Registered: Jan 2005
Posts: 18

Original Poster
Rep: Reputation: 0
I have often wondered if I was intellectually masochistic, yes. But Notepad was the only thing I had to write code in before, and I remember how elated I was when I got to play with Linux for the first time. After using the Vi Editor, I figured that Notepad was the closest thing Windows had to it.

The Wordpad idea was great. I don't know why but when I was a lot longer I tried it out, didn't like it, and hadn't used it since. jEdit has been great! I haven't tried the FTP plugin yet, but so far it's made everything a lot easier. Thanks!
 
Old 12-27-2006, 10:05 PM   #5
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32
Quote:
Originally Posted by CatalystChilde
After using the Vi Editor, I figured that Notepad was the closest thing Windows had to it.
In case you didn't know, there is a Windows version of Vim. It even comes with both the command-line version and GVim.
 
  


Reply



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
converting a doc/ppt Windows files in html files under linux env agrosu Programming 7 02-23-2006 03:07 PM
Backed up Windows Files on Linux; Can't Recover them to Windows MadFunk Linux - Software 6 08-16-2003 08:16 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:10 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