Questions tagged [bbedit]

BBEdit is a proprietary text editor made by Bare Bones Software available for Mac OS X. It is marketed under the trademark slogan, "It doesn't suck."

BBEdit is a proprietary text editor made by Bare Bones Software. It was originally developed for Macintosh System Software 6 and is now available for Mac OS X.

BBEdit is marketed under the trademark slogan, "It doesn't suck."

BBEdit is designed for use by software developers and web designers. It has native support for many programming languages and custom modules can be created by users to support any language. BBEdit is not a word processor, meaning it does not have text formatting or page layout features.

The application contains powerful multi-file text searching capabilities including strong support for Perl-compatible regular expressions. BBEdit allows easy previewing and built-in debugging of HTML and provides built-in prototypes for most HTML constructs. It also includes FTP and SFTP tools and integrates with code management systems. BBEdit shows differences between file versions and allows for the merging of changes. Support for version control, including CVS, Perforce, and Subversion is built in.

(Copy from Wikipedia entry)

158 questions
4
votes
2 answers

Use BBedit to replace CR with LF

I have a text file where I would like to change all the Carriage Return to Line Feed. I am working on a Mac, and it seems like BBedit should be able to easily do this. However, in the search function it does not appear to differentiate between CR…
stu
  • 151
  • 1
  • 2
4
votes
2 answers

How to use code completion in BBedit?

This is driving me nuts. I've just downloaded BBedit, which comes with 'text completion'. I've checked that it is turned on in Preferences. I'm writing a CSS file. I start to type in 'text-transformation' and as expected it suggests…
Markeee
  • 523
  • 2
  • 8
  • 23
4
votes
3 answers

Remove HTML tag associated with a class

I am forcing myself to learn how to script solely in AppleScript but I am currently facing an issue with trying to remove a particular tag with a class. I've tried to find solid documentation and examples but at this time it seems to be very…
DᴀʀᴛʜVᴀᴅᴇʀ
  • 7,681
  • 17
  • 73
  • 127
4
votes
3 answers

regex matching a repeated subpattern

I want regex to match a pattern only when it consists of a repeated subpattern. It can be boiled down to something as simple as the following. Given this text: a a a b b b I want a regex pattern that will only match "a a" and "b b" (and NOT "a…
larryy
  • 668
  • 7
  • 13
4
votes
6 answers

Escape double quotes of HTML attributes output by PHP

Often when writing PHP I'll have it output some HTML like this - echo "".$link_text.""; Obviously this won't parse as I need to escape the double quotes in the attributes of the element. Is there a regex…
Phil
  • 371
  • 1
  • 4
  • 13
3
votes
2 answers

Why is my search in BBEdit causing a "stack overflow" error?

I'm stumped about a "stack overflow" error--"out of stack space (application error code: 12246)--that I'm getting in BBEdit when I do a "replace all", searching for (@article(((?!eprint|@article|@book).)*\r)*)pmid =…
orome
  • 45,163
  • 57
  • 202
  • 418
3
votes
2 answers

How to go to a specific character offset

I'm on MacOS 10.15.7, using BBedit 13.5.5. Under "Go ->" There is only Go to Line Number. I want to go to character 145 of the file.
Calicoder
  • 1,322
  • 1
  • 19
  • 37
3
votes
0 answers

How do I troubleshoot bbdiff not being used as my git difftool (on macOS)?

After reading through Configuring diff tool with .gitconfig, I setup my ~/.gitconfig to contain the following: [diff] tool = bbdiff [difftool "bbdiff"] cmd = /usr/local/bin/bbdiff --wait --resume "$LOCAL" "$REMOTE" But when I run git…
Daryl Spitzer
  • 143,156
  • 76
  • 154
  • 173
3
votes
1 answer

How do you set the syntax coloring for a document?

In BBEdit how do you set the syntax coloring for a document that is unsaved and has no extension?
Steven Edmunds
  • 315
  • 6
  • 14
3
votes
1 answer

Replace underscore with dash in url for given url extensions using GREP / Regex

I use BBEdit. BBEdit supports multi-file search and replace with GREP. Using this (copied from a Notepad++ post here at stackoverflow): (\bhref="|(?!^)\G)[^"<_]*\K_ I can get a list of all URLs containing underscores. The idea is to replace all the…
Stan Busk
  • 53
  • 8
3
votes
1 answer

BBEdit Grep/Regex find and replace part after dash

What should the regular expression look like when I want to find and remove the part that begins with a dash (-) and everything after in the Article number column? I'm using BBEdit to search and replace the strings in a tab delimited CSV-file…
petsk
  • 414
  • 7
  • 16
3
votes
1 answer

Appending 0 (zero) to a grep match reference

tl;dr I want to add a 0 at the end of the first backreference (\1) from a grep search. How can I differentiate this from the tenth backreference (\10). Using grep in bbedit, I want to replace a part of a string with a part of that part of a string…
user10061371
3
votes
1 answer

In BBEdit, how can I search for a pattern and then copy all the lines found with that pattern?

In BBEdit (11.6.9), using find with grep checked on I'm looking for lines in a large file containing this pattern: registeredTd="11/\d\d/2017 It stands for a registered date of November, 2017 in my file. If I "find all" I get correctly see 69…
Doug Lerner
  • 1,383
  • 2
  • 17
  • 36
3
votes
3 answers

Use Grep to find blocks of text between two phrases (including the phrases)

Is it possible to use grep to high lite all of the text starting with: mutablePath = CGPathCreateMutable(); and ending with: CGPathAddPath(skinMutablePath, NULL, mutablePath); Where there is an arbitary amount of text in between those two…
Ser Pounce
  • 14,196
  • 18
  • 84
  • 169
3
votes
1 answer

Integrating jsLint into BBEdit

How do I incorporate jsLint into BBEdit? Environment: OSX Mountain Lion BBEdit 10.1.2 (3152) I installed Node.js (0.8.14) and ran sudo npm install -g jslint I am able to run jslint from the command line by running jslint…
losthorse
  • 1,530
  • 1
  • 13
  • 33
1
2
3
10 11