Questions tagged [textwrangler]

TextWrangler is the “little brother” to BBEdit, a professional HTML and text editor for the Macintosh.

TextWrangler

TextWrangler is the “little brother” to BBEdit, a professional HTML and text editor for the Macintosh.

TextWrangler vs. BBEdit

TextWrangler is a very capable text editor. What sets BBEdit apart is its extensive professional feature set including Web authoring capabilities and software development tools.

How do I get TextWrangler?

Download TextWrangler here.

TextWrangler is a…

  • General Purpose Text Editor
  • Programmer’s Text Editor
  • Unix And Server Administrator’s Tool
  • Powerful Text Transformer And Manipulator
  • Good Mac OS Citizen
  • Powerfully Useful Tool
  • product developed in the best traditions of Bare Bones Software, with high performance, ease of use, a rich feature set, and the ability to read its own release notes.

TextWrangler 4.0 System Requirements

  • Mac OS X 10.6 or later (10.6.8, 10.7.3 or later recommended)
  • Intel Macs only

What about BBEdit Lite?

BBEdit Lite was discontinued a number of years ago, and the world has moved on. TextWrangler and BBEdit have capabilities that were never supported (or possible) in BBEdit Lite:

  • Run natively and at full speed on Macs with Intel processors;
  • Open files from (and save them to) remote FTP and SFTP servers;
  • Pattern matching (BBEdit's grep mode uses a PCRE version from 2003, so recent PCRE features are missing);
  • Support for editing Unicode text files, and converting between text encodings;
  • Find Differences to compare files or folders;
  • Integration with the Unix command-line environment;
  • Advanced and extensible programming language support, with code folding, syntax coloring, and extensibility;

…and much much more.

177 questions
1
vote
1 answer

How search and replace with Textwrangler xml tag ? with grep?

For example, i try to search and delete in an XML file all node wp:postmeta who has different content _edit_last I'll try…
jcbaudot
  • 60
  • 7
1
vote
2 answers

Batch replace serialized CDN subdomains

We are moving an existing website to use CDN distribution of img resources. The project manager has mandated that on each page we have to distribute img src's to one of six different CDN subdomains -- the idea being that since download requests to…
1
vote
1 answer

How to find X numbers in text wrangler

i have a text file that looks like this: word1[53] word2[14] word3[99] what expression to i need to use in my find/replace to find any two numbers like the ones above? thank you
man13_b
  • 11
  • 2
1
vote
1 answer

Import .txt file in TextWrangler - Insufficient memory Error code: -108

I tried importing a .txt file into TextWrangler version 4.5.10, but got error code -108. The .txt file is 1.11 GB. I have a MacBook Pro version 10.9.5. I turned off the option to "Automatically refresh documents as they change on disk" to save…
Scott Davis
  • 983
  • 6
  • 22
  • 43
1
vote
2 answers

Multiline Regex does not work with tabs

I have a large text file with some notes in TextWrangler that I want to parse with Regex and write the matches to a CSV file for MySQL import. Here is a sample source: ARCHIVE 02.09.2014 22:35 title1 content content content content 30.08.2014…
Timm
  • 2,488
  • 2
  • 22
  • 25
1
vote
3 answers

How to merge lines that start with the same items in a text file

I have a text file containing some thousand lines as follows: File: abc: bla1 bla1 bla1... cde: bla bla bla... ghk: bla1 bla1 bla1... lmn: bla bla bla... abc: bla2 bla2 bla2... bcd: bla bla bla... ghk: bla2 bla2 bla2... xyz: bla bla bla... I…
Niamh Doyle
  • 1,909
  • 7
  • 30
  • 42
1
vote
2 answers

Python: script only running when imported in terminal. MAC

For some reason my script refuses to run directly from Text Wrangler but works fine when imported into terminal. import math def main(): print("This program find the real solutions to a quadratic\n") a,b,c, = eval(input("Please enter the…
1
vote
2 answers

Use Grep to extract just email addresses from text file list of email addresses with names

this is a similar question to some that are already out there, but couldn't find one that answered my question specifically, so thank you for any assistance/insight. So I have a text file that I've opened in TextWrangler (popular Mac text editor)…
AppHopper
  • 19
  • 2
  • 6
1
vote
1 answer

Is there a way to know from the command line which files TextWrangler currently has open?

TextWranger comes with it's command-line tool, "edit", which allows me to open a file for editing on the command-line. The problem is, the "edit" program ends (returns control to the calling program) as soon as it sends the command to TextWrangler…
Sophia_ES
  • 1,193
  • 3
  • 12
  • 22
1
vote
1 answer

Find multiple subpatterns and replace using back copy on multiple lines with textwrangler grep

Currently I am using TextWrangler (mac) with the grep find/replace, but would be just as happy to use any other editor or command line tools. I have a text file with the structure like this (yes, there is a space at the beginning of each line): …
Palmtree
  • 43
  • 7
1
vote
1 answer

Find and replace next and next and not find the first and last

Really elementary question but I can't get this to work. My sample text is provided in the bottom of the page. The only row I want left is the ones looking like this: "178-207 30 WVRTRWALLLLFWLGWLGMLAGAVVIIVRA -3,95". I currently use…
user1461829
1
vote
2 answers

TextWrangler: This file doesn’t appear to contain a valid ‘shebang’ line

It is my first time working with TextWrangler. I am using it to open a .sql file. But when I try to run the file I get the following error: This file doesn’t appear to contain a valid ‘shebang’ line (application error code: 13304) I tried to look…
FranXh
  • 4,481
  • 20
  • 59
  • 78
1
vote
0 answers

Grep not recognising all newlines

I'm totally new to scripting - so new in fact that most of what I do script ends up being put in Mac's Automator as 'Run Shell Script.' So please forgive, well, everything. Basically, I am building a web-corpus. So, I'm downloading .html files from…
user2437842
  • 139
  • 1
  • 10
1
vote
2 answers

I run Python in TextWrangler and it works fine but on Mac Terminal it doesn't

Python code: "" #!/usr/bin/env print "Hello world!" print "How are you?" The above is some code that I applied onto a script and it works when run in TextWrangler, but when I put it in Terminal, it fails. Why is this happening? Does it…
farmanp
  • 23
  • 1
  • 3
  • 7
1
vote
2 answers

regex to remove text between two strings in TextWrangler

I've searched quite hard for an answer to this. Basically, what I'm trying to do is to remove certain fields in some of my exported vCards which I exported using the Mac's Contacts application via Automator. I managed to remove those single-line…
user743767