goglsenior.blogg.se

Textwrangler for mac tabs to spaces
Textwrangler for mac tabs to spaces










Which launched TextWrangler (free text editor for Mac, get if you don’t already have it), and I saw that it had selected “Windows (CRLF)” line endings.

Textwrangler for mac tabs to spaces how to#

I had no idea how to interpret the result, but it gave me an idea: To check if I’m actually saving the file with Unix style line endings or not.īack into Terminal, I wrote the following: sudo edit /etc/hosts

textwrangler for mac tabs to spaces textwrangler for mac tabs to spaces

… to confirm that your /etc/hosts file has Unix style line endings. So, after hours of googling around, searching and reading, I came upon this post, which suggests to run this command in Terminal: hexdump -C /etc/hosts That’s of course a possibility, but the whole installation process sounds complicated to me, and I’d rather avoid running a local DNS server if possible, considering that it should work with just the hosts file, and it used to. One workaround suggested on the Internet was to install DNSMasq and run your own local DNS server based on your hosts file. … would indicate that the first resolver was actually the DNS server, and your local resolver came only 2nd, so Apple might have changed the resolve order, so your hosts file is no longer 1st priority. Going into terminal and typing: scutil -dns However, I’m not sure when, if it was with Lion (10.7) or the recent 10.7.2 update, lots of people started to have problems with their hosts file, as if it was being ignored.

textwrangler for mac tabs to spaces

Usually, you’d do something like that by editing the /etc/hosts file on a Mac and then you’d be good to go. Besides running this blog, I’m also a freelance web-developer, so I sometimes have a need to modify my local “hosts” file on my Mac, in order to get development/local domains to point to my local web server and also to apply DNS changes before they have propagated through the entire Internet.










Textwrangler for mac tabs to spaces