Line Break/Tab issues in XCode and JMP

Discussion in 'Mac Programming' started by gotzero, Oct 23, 2009.

  1. macrumors 68040

    Joined:
    Jan 6, 2007
    Location:
    Mid-Atlantic, US
    #1
    I am finding that code files I write in JMP on the mac and then open in SAS on Unix or Windows do not register line breaks.

    Similarly, I am noticing that when I modify Java files in XCode, my tabbing is no longer correct when I open the files in Text Editor or ConTEXT on the PC.

    Is there something easy I am missing? I tried searching after noticing this was not an isolated case, but I did not come up with much.
     
  2. macrumors 6502

    Joined:
    Jun 2, 2009
    #2
    I'm not sure about JMP, but XCode has options for both line endings and tabs/spaces. Line endings are under Preferences->Text Editing. You can either preserve existing or force them to something else. Tabs are under Preferences->Indentation. You can either leave tab characters in the file or convert them to a certain number of spaces. I don't think that it replaces tabs throughout the file when you save it, but I could be wrong.
     
  3. thread starter macrumors 68040

    Joined:
    Jan 6, 2007
    Location:
    Mid-Atlantic, US
    #3
    Thanks, I shifted the xcode preferences around, and although there is one program that still reads the files as before, I can get over it.

    I still cannot figure out the JMP issue, since an "enter" keystroke is rarely something that is user controllable.
     
  4. macrumors 6502

    Joined:
    Jun 2, 2009
    #4
    Line breaks are surprisingly complicated for such a simple idea, especially on the Mac.
     

Share This Page