Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Formatting errors in Java assignments

 
Armando Moncada
Ranch Hand
Posts: 30
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am asking again for any help regarding the following:

I am using Yahoo mail and have tried my gmail account as well but my assignments keep getting sent back to me with formatting errors. I am using plain text as requested and putting them in the body of the email. I copy and past from Notepad++. Does any one have any suggestions. Currently, I have to type it in character by character.

It screws up the indentation, some of the braces are in the wrong place, and some of the lines are indented incorrectly.
 
David Mason
Ranch Hand
Posts: 56
Android Chrome Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Armando,

It could be that Notepad++ is using Tabs & hiding the fact from you.

You can check whether you are using spaces or tabs here ...

Within Notepad++, go to Settings, then preferences, then "Language Menu / Tab Settings".

In the "Tab Settings" box, is "Tab size :" set to 4 and the "Replace by space" checkbox checked ?

(This is probably the
something that automatically converts tabs to spaces or vice-versa
that Marilyn was asking about in your duplicate thread.)

Hope this helps
DBM
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic