PDA

View Full Version : Notepad for editing Perl?


Jeff
09-21-2000, 01:40 AM
I've now seen a comment made by three different people about Notepad not saving true ASCII code, and therefore messing up a perl script.[nbsp][nbsp]They were all on one discussion list, so I'm not sure if it is just an urban legend or not.[nbsp][nbsp]Is there truth in this?


Are you saving files in pure ASCII text format? For exemple use Wordpad but do not use Notepad.

...Curious...

Deb
09-21-2000, 01:46 AM
Yes there is some truth to this... Personally, I like Ultra Edit (http://www.ultraedit.com/) .... It's been so long since I've seen Notepad that I have almost forgotten what it looks like.

Deb
[nbsp]- Programs should do as they are told not what the programmer predicts we will tell them.

Justin
09-21-2000, 02:56 AM
I think you have it backward. Notepad is a text-only editor, thus only saves in plain ASCII text. WordPad is a rich text editor, which supports colors/images/fonts/font attributes, which are not plain text (similar to HTML).

Just use Notepad and you'll be fine... :)

------------------
Justin Nelson
FutureQuest (http://www.FutureQuest.net/index.php) Support

Shalazar
09-21-2000, 03:02 AM
UltraEdit is a utility that I use on a daily basis for HTML, PHP/MySQL, and Perl work is UltraEdit2.[nbsp][nbsp]I love the downloadable library files which allow customization and auto-complete of various coding functions.[nbsp][nbsp]Makes things very easy to follow when everything is color coded for you.

http://www.ultraedit.com
[This message has been edited by Shalazar (edited 09-21-00@03:04 am)]

mike_w
09-21-2000, 08:27 AM
It's no accident that UltraEdit gets recommended alot, it just rocks. I've paid for two copies, one for home, one for the office. And in a world of shareware and cracks for shareware, that says alot. Now, if only UltraEdit had a vi compatability mode where it uses the the same keystroke sequences as vi, it would be perfect.

Terra
09-21-2000, 08:32 AM
1) UltraEdit

2) Notepad saves as ASCII, but with the infamous CRLF problem...[nbsp][nbsp]Problematic if you don't upload in ASCII mode...

--
Terra
--How oxymoronic that I repeated myself yet still derived differing results--
FutureQuest

ChrisH
09-22-2000, 05:24 PM
If you like vi, or are just used
to it, you can get vim for the
PC. I load it everywhere and
it's great! You can do a lot more
than vi, syntax colors, etc.

www.vim.org (http://www.vim.org) if you are interested.

matthew
10-07-2000, 09:58 AM
> If you like vi, or are just used
> to it, you can get vim for the
> PC. I load it everywhere and
> it's great! You can do a lot more
> than vi, syntax colors, etc.

I doubt it, if he's using Notepad. (Anyway Gvim is better (also from vim.org).)

But really you should try Linux if you're going to write scripts. I use nothing else at home, and it has lots of nice text editors; GEdit is nice Notepad-style editor, but with multiple document support (tabs), line numbers etc; XEmacs is the most efficient way to edit text, but takes some getting used to, etc.

I can't see why anyone would want to use Windows, seeing as Microsoft are apparently incapable of writing a decent text editor (Notepad can't even cope with Unix files in its latest version, and Wordpad sucks for creating text (too many prompts and so on)). Do yourself a favour and get Linux; Linux-Mandrake is very nice, especially version 7.2 (with KDE 2), which I am currently beta testing.

Grab a copy for $6.99 (two packed CDs) from http://cheapbytes.com, or download it for free from http://www.linux-mandrake.com.

If you must use Windows, get EditPlus, but it will cost you (to register) about 5 times the price of Linux and do much less.

mike_w
10-07-2000, 11:45 AM
I'll probaby never use one of those "nice text editors". During a typical work week I have to log into BSD, Solaris and various linux servers. The one thing I can count on is vi. Thats the reason I switched years ago from emacs to vi. That, and the fact that my hands took a real beating from using emacs.

One of these days I'll give VMware a try. But until then, I'll stick with ms windows for my workstation. I'm not ready to give up Photoshop, Illustrator, Fireworks and all of my games.[nbsp]

matthew
10-08-2000, 12:02 AM
Actually Vi[m] is far more advanced than almost any other text editor - syntax highlighting, infinite undo and redo, cut and paste, etc. It is probably the most powerful editor there is, with the exception of Emacs.

Just because it looks arcane doesn't mean it's not powerful.

Anyone who writes a lot of text should make the effort to learn one of these editors, because it will save them time in the long run.

ChrisH
10-13-2000, 12:21 AM
Yes! vim rules. You can start out
and it looks like vi. Then you
can do lots lots more. And it
works the same pretty much everywhere.
You can use vim on lots of different
machines.

Yes also, gvim is great. I used it on
windows, and still do. Then I use it
on solaris, and get syntax colors.
It does almost everything halfway
standard out of the box: html, sql,
perl, c, java, other stuff I don't
even remember. Split windows. I wish
I had the time to learn more!

I think I didn't mention gvim because
my version on Solaris has gvim as
a symbolic link to vim . . . :)

[nbsp][nbsp]ch