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 to match and replace n number of times with RegEx

I'm using TextWrangler, the free version of BBEdit on the Mac, which I understand uses the PCRE engine. What I want to do is match a specific number of lines and replace as well. After a lot of searching I came up with this: (^(.*\r)){25} This lets…
John G
  • 13
  • 4
1
vote
1 answer

Regular expression to duplicate each line, add separator, prefix

I would like to have a regular expression that I can use in TextWrangler. I've read that substituting for \n+ will allow me to add the suffix but I do not know how to duplicate and add the…
Bobby
  • 1,585
  • 3
  • 19
  • 42
1
vote
1 answer

Search and replace sub-patterns using regex

I'm trying to use regular expressions to search/replace sub-patterns but I seem to be stuck. Note: I'm using TextWrangler on OSX to complete this. SCENARIO: Here is an example of a complete match: {constant key0="variable/three"…
jerdiggity
  • 3,655
  • 1
  • 29
  • 41
1
vote
2 answers

TextWrangler does not highlight PHP & HTML codes properly

TextWrangler for Mac (v5.0.2) sometimes cannot highlight HTML & PHP codes (mixed) properly, given that the syntax is perfectly correct. How to resolve this issue?
Raptor
  • 53,206
  • 45
  • 230
  • 366
1
vote
1 answer

Show sidebar again in TextWrangler

It seems I'm blind. I can't find the option to display the sidebar again to display all open files. Where can find it?
Tino Rüb
  • 799
  • 2
  • 13
  • 27
1
vote
1 answer

Regular Expression, only replace first occurrence of HTML tag

I've got several files that have double tags in them (either on purpose or by accident). I'm looking to find the first occurrence only of the tag and append it with additional HTML code. But the second occurrence shouldn't be affected.…
scotthorvath
  • 21
  • 1
  • 4
1
vote
1 answer

Regex, how to select everything except pattern?

I'm working on TextWrangler, I want to delete every word from a text that doesn't have an hashtag before. Example: Looking for a simple #homemade gift for the #holidays? This #DairyFree #DarkChocolate #Fudge recipe is simple and absolutely…
nadiaeagle
  • 47
  • 5
1
vote
2 answers

Textwrangler grep regex expression to remove every except one

I am desperately looking to a Textwrangler grep syntax to remove all the multi language garbage from a cvs file. I have a bunch of: PortugalPortogallo
shaice
  • 39
  • 4
1
vote
0 answers

How to run Ruby on TextWrangler (Mac)

Hey guys i know this is sounds like very stupid questions. I am newbie to coding . And i try to figure out how to run Ruby on my macbook via TextWrangler. Can someone help me ? Please ? Really appreciate that. i've been working on this for long…
Emily
  • 11
  • 1
1
vote
2 answers

Replacing digits immediately after a saved pattern

Searched pattern looks like text9 I search for (text)9 I want to replace with \15 so that I would get text5 but instead it's just giving me text. Any other character works except for digits.
Tomulent
  • 531
  • 2
  • 5
  • 20
1
vote
1 answer

How to change text color in TextWrangler on Mac

I cannot figure out how to do this. All I want to do is to select some text and then change the color of that text to red, say. I've lost 20 minutes of my life trying to do this. Typing 'font color' into help search brings up a reference to lesson…
Bruce
  • 59
  • 1
  • 1
  • 3
1
vote
1 answer

Regular Expressions to extract certain information

I have a body of information. A very large text file that is roughly 200k lines. This text file was built by merging thousands of pages of PDF text (extracted via OCR obviously). This information is 'meeting minutes' from a medical board. Within…
1
vote
1 answer

Skip non-decodeable characters in Python file reader

I have a csv file, which I want to read with Python. When I use the following code snippet, I get an error. with open(input_file, 'r') as file: self.md = file.read() UnicodeDecodeError: 'ascii' codec can't decode byte 0x89 in position 58658:…
physicalattraction
  • 6,485
  • 10
  • 63
  • 122
1
vote
1 answer

TextWrangler: comparing two documents ignoring whitespace with the help of AppleScript

I was looking for a way to compare two documents ignoring the whitespace in TextWrangler. While the interface of TextWrangler doesn't provide that option I found this https://groups.google.com/d/msg/bbedit/ER3VdOf2xOs/IcKi3ccA90oJ Now this was not a…
SqAR.org
  • 557
  • 6
  • 15
1
vote
1 answer

Python IDLE won't import script (gives error) but script works fine from textwrangler

I have a .py script that runs perfectly in TextWrangler but will not work when I try to imported into Terminal or IDLE. I keep getting this error message: Traceback (most recent call last): File "stdin", line 1, in "module" File "c.py", line 1 …
noble-k
  • 13
  • 1
  • 2