Meaningless Drivel is fun!
The moose likes Cattle Drive and the fly likes Formatting help needed ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Formatting help needed ..." Watch "Formatting help needed ..." New topic

Formatting help needed ...

Jinny Morris
Ranch Hand

Joined: Apr 29, 2007
Posts: 101
I'm using emacs to type my code - because the highlighting etc really help me out. In my emacs file my formatting is perfection itself (I know this because I just crawled through the current file counting spaces in the front of every line), but when I copy and paste into notepad, or anything else for that matter, my indentations are 3 spaces, not the 4 that I have laboriously counted. Does anyone else use this particular text editor? Or do you have any suggestions for something else that I could use that would provide some syntax checking?

Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
Which OS? WindowsXP? Have you tried saving the file in emacs and opening it with another app (like notepad) rather than copy and paste? Do you have the same issue if you do that?

As far as a text editor is concerned, I've been really happy with TextPad.
[ January 02, 2008: Message edited by: Marilyn de Queiroz ]

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Jinny Morris
Ranch Hand

Joined: Apr 29, 2007
Posts: 101
Marilyn -

Thank you! That worked - along with (as I should have thought of earlier) setting the font in both notepad and my email to Courier.

And, yes, I'm using Windows XP - should have said.
I agree. Here's the link:
subject: Formatting help needed ...
It's not a secret anymore!