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
1
vote
2 answers

How to get the count of a class with AppleScript?

Learning AppleScript I'm trying to practice and I wanted to see if I could get the count of a class in an .xhtml file. In my BBEdit project I set a variable for the project with: set this_project to file of project document 1 made sure to target…
DᴀʀᴛʜVᴀᴅᴇʀ
  • 7,681
  • 17
  • 73
  • 127
1
vote
1 answer

Regular Expression newline \r and \t based on previous line?

I'm trying to manipulate lines in BBEdit but I'm having issues with the indention. What I am trying to do is take a line such as this: Lorem Ipsum Foobar the summer.. locate Foobar and do a \r \t so it will look like this: Lorem Ipsum Foobar…
DᴀʀᴛʜVᴀᴅᴇʀ
  • 7,681
  • 17
  • 73
  • 127
1
vote
1 answer

Applescript keystroke wont work in BBEdit

tell application "BBEdit" activate tell window 1 repeat 100 times repeat 5 times key code 124 end repeat --select insertion point after character 5 keystroke return …
JulianB
  • 1,686
  • 1
  • 19
  • 31
1
vote
5 answers

Help with grep in BBEdit

I'd like to grep the following in BBedit. Find: Knowledge, Mashups, Politics, Reviews, Ratings, Ranking, Statistics Replace…
EC.
  • 11
  • 1
  • 2
1
vote
1 answer

How can I use SVN in BBedit?

I want to use the SVN synchronization in BBedit (version 10.0) for project developed in Lua language. Should I download a SVN plugin (if yes, from where?) or BBEedit has it (if yes, in which menu is it?) Thanks.
TatianaCooper
  • 155
  • 2
  • 13
0
votes
1 answer

Get number of tabstops or white space and concatenate in Applescript (smart newline script to insert bullet)

My end objective is to create an applescript that intelligently inserts a bullet point for me automatically when i hit Alt + Enter. I'm trying to do this in BBEdit and here's the Apple script i snagged from the BBEdit forums: tell application…
KG -
  • 7,130
  • 12
  • 56
  • 72
0
votes
1 answer

How can I compile a list of unique image filenames in a set of html files?

I have ~3,600 html files with a ton of image tags in them. I'd like to be able to capture all the src attribute values used in these files and aggregate them into a text file where I can then remove duplicates and see how many unique image filenames…
0
votes
2 answers

Applescript running from AppleScript Editor not from the menu using BBEdit

I've read here around but I didn't find any fix for this stupid problem. BBEdit, the most famous Mac text editor, should be widely scriptable and actually so it is. But,.. using Applescript I was trying to execute a menu command and there is no way…
Steve
  • 355
  • 3
  • 8
0
votes
0 answers

How can I get BBEdit using a Language Model for Stata to recognize an asterisk after a tab as the start of an Open Line Comment?

I am using a Language Module for Stata in BBEdit. Open Line Comments in Stata can begin with either an asterisk or two forward slashes in a row. BBEdit handles comments beginning with two forward slashes correctly. No matter where the two forward…
0
votes
1 answer

How to make BBEdit rectangular/columnar text selection from AppleScript?

The goal is to select and cut the second column and then paste it to the left of the first column, which these next 3 commands do perfectly: cut selection select insertion point before first character of second line paste column characters BBEdit…
0
votes
2 answers

How do I create an AppleScript to loop through a BBEdit document and move a "-" from the end of a number to the beginning?

I have a dirty report file that contains improperly formatted negative numbers. The ultimate goal is to import these to Excel for analysis. I am using BBEdit to clean the report before importing into Excel. I would like to create an apple script to…
0
votes
0 answers

JMnedict.xml file Trying to purge entries by xml tag?

JMnedict is a Japanese Name file that's free online in xml. I have not found another way it was stored. It is free to use as long as credit is given. Found here: https://www.edrdg.org/enamdict/enamdict_doc.html (I did not write the code below, I…
0
votes
1 answer

How to add a file to BBEdit Project folders

I have these two folders in a BBEdit project. When I drag one of the files into the folder, the file is not added to the folder? How do I add a file to the folder in a project?
zeynel
  • 177
  • 1
  • 1
  • 12
0
votes
1 answer

PLS (Perl Language Server) on BBEdit Doesn't Seem to Do Anything?

I do most of my development work in BBEdit, which thankfully now supports Language Server Protocol and specifically PLS, a Perl implementation thereof. Near as I can tell, everything is set up properly for PLS to do its magic, but I cannot seem to…
Timothy R. Butler
  • 1,097
  • 7
  • 20
0
votes
2 answers

Applescripts. How do I add a text_object/code snippet to the end of certain lines in a text document?

I'm using an Applescript to find-and-replace certain characters or strings of characters in BBEdit to speed up the process of ripping content out of a Microsoft Word document and wrapping it in html before it goes into a CMS. Most of this is fine…
Editgrrr
  • 3
  • 2