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
67
votes
7 answers

Auto-convert tab to 4 spaces in TextWrangler?

Is there a preference in Textwrangler to redefine a tab as 4 spaces? In Vim this is set expandtab in the vimrc, but I don't know how to set it in TW besides clicking "Detab" when I'm done editing the document. Thanks, Kevin
Kevin Burke
  • 61,194
  • 76
  • 188
  • 305
61
votes
8 answers

My diff contains trailing whitespace - how to get rid of it?

I've tried editing a php file in TextWrangler with line endings set to Unix, in NetBeans, and in vim. When I save the diff to a patch and then try to apply it, it gives whitespace errors. When I type git diff I can see ^M at the ends of my lines,…
beth
  • 1,916
  • 4
  • 23
  • 39
32
votes
3 answers

Text editor function to indent multiple lines at once

I want to make my code more organized. So, whenever I copy a function from my functions.php file and paste it in a class, I need to indent each line of the function one or more times so that it's easier to read and looks nice. Some of my functions…
Lance
  • 4,736
  • 16
  • 53
  • 90
23
votes
1 answer

How do I turn on line numbers by default in TextWrangler on the Mac?

I am fed up having to turn them on every time I open the application.
Polsonby
  • 22,825
  • 19
  • 59
  • 74
21
votes
1 answer

Simple TextWrangler Grep Replace

I am trying to replace all h2 tags containing the class "title" with h1:

Things

I'm using the Multi-File search in TextWranger with this:

[^>]*

I'm able to find everything, but when I hit replace, it…
Edward Pacino
  • 213
  • 1
  • 2
  • 4
21
votes
2 answers

Is there a way to format code in TextWrangler?

I'm using TextWrangler on Mac OS X to do some web development. Is there a way to auto format code?
dev.e.loper
  • 35,446
  • 76
  • 161
  • 247
19
votes
2 answers

How to replace line-breaks with commas using grep in TextWrangler?

I have a text-file container a number of lines, which I need to turn into a csv. What is the easiest way to replace all the line-breaks with ", ". I have TextWrangler and read that it would do so by using grep and regular expressions, but have very…
zkwsk
  • 1,960
  • 4
  • 26
  • 34
19
votes
11 answers

More efficient R / Sweave / TeXShop work-flow?

I've now got everything to work properly on my Mac OS X 10.6 machine so that I can create decent looking LaTeX documents with Sweave that include snippets of R code, output, and LaTeX formatting together. Unfortunately, I feel like my work-flow is…
baha-kev
  • 3,029
  • 9
  • 33
  • 31
14
votes
6 answers

RegEx to remove repeated start of line using TextWrangler

Trying to turn a: 1, 2, 3 a: a, b, v b: 5, 6, 7 b: 10, 1543, 1345 b: e, fe, sdf cd: asdf, asdfas dfasdfa,asdfasdfa,afdsfa sdf e1: asdfas, dafasd, adsf, asdfasd e1: 1, 3, 2 e1: 9, 8, 7, 6 into a: 1, 2, 3 a, b, v b: 5, 6, 7 10, 1543, 1345 e,…
Abecee
  • 2,365
  • 2
  • 12
  • 20
12
votes
2 answers

Commenting/Uncommenting a block of Python code in TextWrangler

Searched this a bit before asking. There is another thread that seems to be asking about this same issue in the IDLE editor, but I'm wondering about TextWrangler. The manual lists "Un/Comment Selection" but in the keyboard shortcut section it…
urbushey
  • 1,339
  • 1
  • 13
  • 21
8
votes
6 answers

Opening a remote file with TextWrangler

My current solution for editing files on a remote web server is to use Fetch to browse the remote machine and TextWrangler to make the edits. But since I'm getting more comfortable navigating the command line on the remote machine (but not…
Mike
  • 821
  • 1
  • 9
  • 6
7
votes
3 answers

How do prevent TextWrangler save alert (This file appears to have been modified) on Mac?

Whenever I save a file in TextWrangler, I keep getting a popup alert with the text: "The file at sample.sh may have been changed on disk by another application. If so, saving this document may cause data loss. Are you sure you wish to…
7
votes
1 answer

Textwrangler grep regexpression reference?

I am searching for a comprehensive table / list of regexpressions as used in Textwrangler. The manual is nice but it lacks an overview that could be checked for quick reference cheat-sheet. THX ;)
runlevel0
  • 2,715
  • 2
  • 24
  • 31
6
votes
3 answers

A quickie: python, terminal "print command not found"

Been using terminal to run python scripts written in textwrangler for about 18 months. Decided to look at possibility of moving to an IDE so downloaded a couple of trial versions. Just downloaded BBEedit and suddenly having problems executing…
Paul Patterson
  • 6,840
  • 3
  • 42
  • 56
5
votes
1 answer

Code refactoring: from $ to [[

I have a lot of code which uses the $ operator rather than [[. I've read about many advantages of [[ and would like to refactor all of the code. Would there be any problems with the following method? And how could I best do the search and replace…
Bobby
  • 1,585
  • 3
  • 19
  • 42
1
2 3
11 12