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

What's a good tool to run a list of regex search-replace patterns against a text file?

I want to invoke the tool via the Textmate 'Filter Through Command' command. The intention is to replace the BBEdit 'Textfactory' functionality, as larger textfactories tend to become hard to manage. Is sed the tool of choice? Any best practices on…
-1
votes
1 answer

Delete everything except first line

This should be simple, but I'm stumped. I'm starting with: Line 1 Line 2 Line 3 Line n And I want to end up with: Line 1 I'm using BBEdit, doing a search and replace with grep -- replacing with nothing.
-1
votes
1 answer

"process lines containing" Feature in Notepad++

In TextWrangler and BBEdit there is a "process lines containing" function. Does anyone know if this is available in Notepad++? I haven't been able to find it yet, if so. Alternatively, does other PC software exist that might have this option?
-1
votes
1 answer

Pass values from array to a function

I have the following code which gets all news: private function get_news() { $news = array(); $query = $this->database->query("SELECT * FROM `news` ORDER BY `news_id` DESC"); while($row = mysql_fetch_array($query)) …
Ivanka Todorova
  • 9,964
  • 16
  • 66
  • 103
-2
votes
5 answers

Regex for removing repeating numbers on different lines

It's perhaps quite simple, but I can't figure it out: I have a random number (can be 1,2,3 or 4 digits) It's repeating on a second line: 2131 2131 How can I remove the first number? EDIT: Sorry I didn't explained it better. These lines are in a…
-2
votes
1 answer

Using Grep and BBEdit/Textwrangler to copy a set variable and paste it earlier in the line

I have a long HTML document with a list of 10-digit text variables that I'd like to copy and paste into a link earlier in the line, for example: 1234567890 Into: 1234567890 So, a Grep…
Robert
  • 3
  • 2
-2
votes
1 answer

How to use grep to change a column

and thanks in advance. I have a huge database where all lines start like this: (497, 36390, 495, 88, 89, 2, 'xxdurango/a-... (498, 36391, 1, 93, 100, 1, 'xxsalamanca... (499, 36392, 498, 94, 95, 2, 'xxsalamanca/noti... (500, 36393, 498, 96, 97, 2,…
-3
votes
3 answers

I cant figure out quite how to write this program. I want to make the program ask the user for speed and time and use a loop to display total

function showAndCalculateDistance(speed, time) { for (var i=0; i<5; i++){ var mph = vehicleSpeed* timeTraveled; return mph } var vehicleSpeed = parseInt(prompt('How fast is the vehicle traveling (in miles per hour)? ')); var timeTraveled =…
1 2 3
10
11