Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems viewing source files created on Mac

 
Philip Herzer
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having problems displaying correctly text files created with BBedit or SimpleText on Mac OS X Panther. I recently upgraded to BBedit 7.1.
Here is a screenshot:

If someone can recommend what settings I have to change to get the text coding to properly display in unix, I'd appreciate.
Also, how can I set the tab and carriage returns to display correctly. It looks like tab was set to 4 spaces. I'm not sure if this will display uniformily on all systems.
Thanks,
Felipe
 
Loren Rosen
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My guess is the funny characters are from the special asymmetrical quote characters. These won't work in Java, or display properly in Unix tools like pico. You can get these characters by typing option-[ and option-shift-[. A lot of word processing programs can automatically replace pairs of quote characters with the aymmetrical ones. This is often called "smart quotes". My old copy of bbedit lite, for example, has an option for this under preferences->editor defaults->smart quotes.
Tab sizes can vary not just from system to system, but from program to program on the same system. I know you can set the tab size in bbedit. You probably can in pico as well. Alternatively, many more programming-oriented text editors have an option whereby when you type the tab key it will insert some some number of spaces rather than a tab character.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic