• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Problems viewing source files created on Mac

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic