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
1 answer

How to match a particular number/field in CSV file consisting of only numbers separated by commas using regex?

I am using BBEdit 12.6 to highlight certain numbers in different colors; to improve readability, in this regard, Kindly help with a regex expression that would match no. 80 / 42 / 55 (8th field) in below sample file. …
Savin
  • 15
  • 7
1
vote
1 answer

BBEdit chomp off excessive decimals

Having a very large data set of float values where the precision is not longer needed, what is a regular expression that I can use with BBEdit to allow me to keep a maximum of 5 digits after a period? Physically, the decimal value always has a…
Jerome
  • 5,583
  • 3
  • 33
  • 76
1
vote
0 answers

How to target all attributes within an HTML tag

I want to remove all the attributes within all paragraph tags, but my positive lookahead for the ">" seems to be skipping ahead to ">" in the closing paragraph tag instead of the opening one. Example: My HTML:

text

What I…
1
vote
0 answers

Changing the default display of line breaks in search window?

I recently switched from Textwrangler to BBEdit. I use these editors to perform large multi-file GREP-search mainly. But in BBEdit I noticed that line breaks automatically get converted to \n in the search window, and that makes in very hard for me…
Solmyr87
  • 11
  • 3
1
vote
1 answer

regex for substituting comma with period in a string of digits

Assuming a string of minimum one digit to the left of the decimal and minimum one to the right 0,0 when replacing the comma for a period, the replace function is not returning a proper result as the period in GREP signifies any character. What is…
Jerome
  • 5,583
  • 3
  • 33
  • 76
1
vote
2 answers

Regular expressions to remove content in a JSON file. using BBEdit

I am trying to get rid of a load of content in a JSON file to have it prepped for translation using BBEdit. a Line looks like this: "ribbonText1" : "The text that needs to be translated", I would like to remove everything so it ends up like…
1
vote
1 answer

Grep for ":" in one instance, but not ":" in another

I need to find : when occurring after an alpha char, but NOT when its before or after an integer, and am having trouble setting that grep. In the following example, I only want to replace the : after Creation Time with a TAB and NOT where it occurs…
1
vote
2 answers

How can I cut text in AppleScript and BBEdit?

In a text file given the following text: Monday Tuesday Wednesday Thursday Friday Saturday Sunday with AppleScript and BBEdit I'd like to be able to cut the day Sunday and move it before Monday but when I reference the BBEdit dictionary I see the…
DᴀʀᴛʜVᴀᴅᴇʀ
  • 7,681
  • 17
  • 73
  • 127
1
vote
1 answer

Increment through dashed lines in AppleScript?

I'm trying to check the values for an accurate count but I'm having issues with the stepping process. Given the extraction of: 1-1 2-1 3-1 4-1 5-1 6-1 7-1 7-2 8-1 9-1 9-2 9-3 9-4 10-1 11-1 12-2 ## intentionally left out 12-1 to throw error 13-1 how…
DᴀʀᴛʜVᴀᴅᴇʀ
  • 7,681
  • 17
  • 73
  • 127
1
vote
1 answer

AppleScript how to find pattern and set it to a record or list?

In AppleScript I know how to do a typical find with something like: tell application "BBEdit" activate open find window find "memberFunction\\(\\)" searching in text 1 of text document "theFile" options {search mode:grep, wrap…
DᴀʀᴛʜVᴀᴅᴇʀ
  • 7,681
  • 17
  • 73
  • 127
1
vote
1 answer

Add shortcut to BBEdit submenu

Is there a way to add a shortcut to the Markup/Tidy/Reflow Document submenu in BBEdit?
Linda
  • 1,973
  • 4
  • 21
  • 24
1
vote
1 answer

Timestamps with SVN (using BBedit/Texmate)

Is there a way to auto insert a time stamp into a document (html/css/ js/php/pl/txt) with every commit?
Nutmeg
  • 155
  • 1
  • 1
  • 5
1
vote
0 answers

BBEdit function matching regex

I am trying to do function matching in the .plist file and am running into a problem. I want to match two very different types of 'functions' and I'm not sure if it's possible. function fooBar() { .. } fooBar = function() { .. } The issue seems to…
Roger Gilbrat
  • 3,755
  • 5
  • 34
  • 58
1
vote
1 answer

Find a pattern of 3 lines of text with grep, then convert into XML

I'm building a BBEdit Textfactory (grep/regex) that converts a repetitive set of 3 lines into blocks of XML, but I've hit a snag due to my limited understanding of regex. Each entry has 3 lines -- a name \1, a date \4, and a paragraph \6 -- and then…
Tethyr
  • 21
  • 4
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