Re: De-select

2008-05-12 Thread Jim Correia
On May 12, 2008, at 1:39 PM, Dean Matthews wrote: OK, here's the situation: I have a page of HTML that has been hit by spammers exploiting the form tag. The affected pages have 10,000 lines of porn spam which I need to delete. There is HTML at the top and the bottom of the page to

Re: De-select

2008-05-12 Thread Jim Correia
On May 12, 2008, at 1:42 PM, Dennis wrote: On May 12, 2008, at 10:04 AM, Chaz Larson wrote: cmd-shift-A is Select None, though OMM just now it's greyed out, possibly because there's a service with that key combo [though I'm not sure why that would grey out the menu item itself]. Yea,

Re: Make BBEdit ignore special strings

2008-04-24 Thread Jim Correia
On Apr 24, 2008, at 11:34 AM, Lorin Rivers wrote: I have code that looks like this: li{% cycle ' class=odd', ' class=even' %} Utterly bogus as html, perfectly fine for the template language I'm working with. BBEdit's tag-balancing parser gets all huffy when stuff like this is in the code

Re: Hard Wrap from bbedit CLI

2008-04-19 Thread Jim Correia
On Apr 19, 2008, at 12:26 PM, [EMAIL PROTECTED] wrote: Is there a way to specify the wrap margin when launching bbedit from the cli? Is there a way to specify it as a HARD wrap? Is there anyway to tell BBEdit to hard wrap a new document? All the instances of 'wrap' in the manual are about

Re: running a unix filter in a text factory

2008-03-28 Thread Jim Correia
On Mar 27, 2008, at 8:56 AM, Peter Weil wrote: Thanks to some assistance from this list yesterday, I have a php Unix filter that runs perfectly when selected from the shebang menu. But when I run it as the first step in a text factory, the filter script fails -- the factory just dies

Re: php unix filter?

2008-03-26 Thread Jim Correia
On Mar 26, 2008, at 1:38 PM, Peter Weil wrote: We have a php script on a server that has been used to process a particular type of text file we receive and prepare it for the web. It has always been run by pasting the text into a web form and clicking submit. What would it take to turn

Re: BBedit as $EDITOR

2008-03-21 Thread Jim Correia
On Mar 21, 2008, at 7:08 AM, Aaron Hsu wrote: --On March 21, 2008 5:04:05 AM -0600 [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: As it is now, once BBEdit is done with the window and I close it, the shell that called it resumes, but I have to go click the terminal window to activate it. I

Re: wrapping comment lines

2008-03-07 Thread Jim Correia
On Mar 7, 2008, at 12:52 PM, Daniel Choi wrote: I write comments in code after a # sign on each line. Is there an easy way to re-wrap this lines in BBEdit without having to manually delete and type the #'s? The Rewrap Quoted Text command will rewrap '#' and '//' comment blocks. Jim --

Re: LOCALTIME using locale

2008-02-22 Thread Jim Correia
On Feb 21, 2008, at 9:09 AM, Tomás García Ferrari wrote: I'm trying to set a clipping to put the date and time on documents. I'm using this: #inline##LOCALTIME %e %B %Y, %R# According to strftime routine, %e = the day of the month as a decimal number %B = the locale's full

Re: Clippings eating hash signs

2008-02-12 Thread Jim Correia
On Feb 12, 2008, at 8:02 AM, Clytie Siddall wrote: I have created Clippings to fill in the top and bottom parts of PO (gettext [1]) file headers. For example, the basic top header for me is: ___ # Vietnamese translation for NAME. # Copyright © #LOCALTIME %Y Free Software Foundation, Inc. #

Re: PHP Comment Out/In

2008-02-10 Thread Jim Correia
On Feb 10, 2008, at 4:09 PM, Patrick Gilmour wrote: Can this be used to make comments of the type /* some-text */ or only // some-text? It can be configured to generate /* comment */ (line by line.) You can set the comment start and stop delimiters in the Languages preference panel.

Re: strings *webarchive | bbedit

2008-02-08 Thread Jim Correia
On Feb 8, 2008, at 5:34 AM, [EMAIL PROTECTED] wrote: [er, it appears that this bounced because the signature was enabled. If it wasn't this message, apologies ] I got a (MacOS Error code: -4960) when trying to open a file that I created with this command: $ strings

Re: Strange console message

2008-01-30 Thread Jim Correia
On Jan 30, 2008, at 8:43 AM, John Church wrote: This has most likely been going on forever, but I only recently had the console open while running BBEDIT. When running BBEDIT 8.7.2, the console reports the following message: 2008-01-29 10:34:25.542 BBEdit[456] GrP not requesting

Re: Running python from bbedit

2008-01-28 Thread Jim Correia
On Jan 28, 2008, at 6:55 PM, Jon Crump wrote: Patrick, thanks for the help. There's still much I don't understand % which python returns: /Library/Frameworks/Python.framework/Versions/Current/bin/python % python --version gets me: Python 2.5 It looks as though you might have installed

Re: Running python from bbedit

2008-01-28 Thread Jim Correia
On Jan 28, 2008, at 11:11 PM, Jon Guyer wrote: 2) Move the contents of your /Library/ site-packages/ into wherever / System/'s points. Then you can get rid of your installation in / Library/. On this machine, I haven't yet installed any additional copies of python.

Re: Tag Maker with SHTML: How to work with server side includes?

2008-01-02 Thread Jim Correia
On Jan 2, 2008, at 12:48 PM, Complex wrote: I'm editing server-side include files where the head and body tags are stored in includes, for good or ill. So whenever I try to use the Add Tag feature to wrap selected text in one element or another, BBEdit tells me, No definition exists for the

Re: Getting BBEDIT to *not* sort in fancy ways

2007-12-12 Thread Jim Correia
On Dec 12, 2007, at 5:56 PM, Jacob Palme wrote: How can I get BBEDIT sort lines *without* any fancy special handling. I have a file in ISO Latin 1 (ISO 8859-1) format, so each character is always one byte. I want to sort it so that e is not regarded as the same as é a is not regarded as the

Re: New version of PHP BBEdit Clipping Set now available

2007-12-06 Thread Jim Correia
On Dec 6, 2007, at 11:51 AM, Charlie Garrison wrote: I'd like to know more about the matching algorithm though. BBEdit seems to match on any 'word' in the clipping name, but I can't find that documented anywhere. It's something I stumbled upon and would like to know more about what

Re: Can a document override the tab setting in Preferences?

2007-10-15 Thread Jim Correia
On Oct 15, 2007, at 8:15 AM, Julian Vrieslander wrote: That is another option. You can turn on Emacs local variables in the Text Files preferences, then use a local variable block that specifies the tab width. Not bloody likely. I have been using BBEdit (since the very first version)

Re: Comparing Docs - new and old swapped?

2007-10-15 Thread Jim Correia
On Oct 15, 2007, at 8:14 AM, Datatude wrote: Notice that going by the modification dates (which I would presume is what Last Saved means in the document toolbar area, correct??) are 4/26/06 in the left-hand document and 12/19/06 in the right- hand document. The line currently highlighted in

Re: Printing Page Ranges

2007-10-06 Thread Jim Correia
On Oct 6, 2007, at 8:24 PM, After Hours wrote: Selective page printing. Print Page 1 to 1 -- no problem. Attempt to print 2 to 2 results in error dialog: [...] Anyone else confirm this? This is a bug which will be fixed in the next update. (The public beta of 8.7.1 previously

Re: Subversion menu option not appearing

2007-09-19 Thread Jim Correia
On Sep 19, 2007, at 6:37 AM, Grant Straker wrote: I've just upgraded to bbedit 8.7 to take advantage of the svn integration but after the install the subversion menu option is not present. I have checked the preferences - Menus - subversion option and the checkbox is enabled. I presume

Re: Unix Scripts

2007-09-05 Thread Jim Correia
On Sep 4, 2007, at 2:47 PM, Tim Gray wrote: I have a question about the Unix Scripts function (not the Filters). What kind of information is passed to the scripts upon execution. Is the path to the active document stored in some accessible way? Currently this information isn't passed

Re: Balancing tags

2007-09-03 Thread Jim Correia
On Sep 2, 2007, at 8:47 AM, Toby Lewis wrote: Thanks for taking an interest. It is not a problem with a specific document it is that sometimes BBEdit balances html tags (as long as they are actually balanced) and at other times it won't balance them anywhere in any document. I can say

Re: Balancing tags

2007-08-31 Thread Jim Correia
On Aug 31, 2007, at 9:03 AM, Toby Lewis wrote: Command-B balances brackets and parenthesis and tags depending on the kind of text being edited. I find that some times when I am trying to get BBEdit to balance tags in html it refuses, even on code that has been validated by the W3C

Re: text factory not a 'readable file'?

2007-08-22 Thread Jim Correia
On Aug 22, 2007, at 1:14 PM, Peter Weil wrote: BBEdit does not recognize text factory files as 'openable' and 'readable' unless you change the 'Enable' pulldown to 'All Files' instead of 'Readable Files' in the Open File dialog box. This is a bug in BBEdit. To ensure we know about a bug,

Re: How do I invoke BBEdit placeholder in external include scripts?

2007-08-20 Thread Jim Correia
On Aug 20, 2007, at 7:21 AM, Michel Milano wrote: But, how can I use the #RELATIVE# placeholder within the applescript? Do you need to know the value of #relative# in the script, or do you just need the end result to have #relative# expanded to the correct value? If you need to know the

Re: setting insert points in Tag Maker

2007-07-11 Thread Jim Correia
On Jul 11, 2007, at 10:30 AM, beat.beer wrote: I try to set insert points inside tag maker. For example: When I use Tag maker to write CSS I can for example call the selector { } and the selector is hightlited to overtype, Know I would love to set a Insert point insiede the brakets to jump

Re: use option as 'meta' key

2007-07-10 Thread Jim Correia
On Jul 10, 2007, at 2:10 PM, Amy wrote: Apologies for what must be a common question, but I can't locate the answer. How do I use the 'option' key (rather than 'escape') as the 'meta' key in BBedit's set of emacs key bindings? Escape is the only recognized 'meta' key at this time. Jim --

Re: Stakes in the ground?

2007-05-12 Thread Jim Correia
On May 12, 2007, at 6:45 PM, Jason Davies wrote: There is a 'Mark' verb in the Applescript dictionary, but I can't figure out the syntax even if my life depended on it. mark v : mark matches of a specified search pattern with a string mark reference : text to be marked options Mark Options :

Re: Setting up Subversion

2007-05-05 Thread Jim Correia
On May 5, 2007, at 9:59 AM, Chris Bruce wrote: I am making the move to Source Control. I have chosen Subversion as the source control system and am now attempting to configure it with BBEdit. I have read the manual and have downloaded and installed the latest version of Subversion but am

Re: Soft Wrap for all open windows

2007-05-02 Thread Jim Correia
On May 2, 2007, at 6:18 PM, Johan Solve wrote: At 17.54 -0400 2007-05-02, Chris Pepper wrote: Thanks! Unfortunately, when I run that, BBEdit immediately complains about a -1 AppleScript error. I'm trying it with 2 windows open; one dirty and one unsaved, although I don't see why that

Re: Ruby .chomp errors

2007-04-30 Thread Jim Correia
On Apr 30, 2007, at 7:42 AM, Greg wrote: If I use Menu #! Run on a Ruby script, I get an error: fileName:11: private method `chomp' called for nil:NilClass (NoMethodError) If I use Menu #! Run in Terminal, the script runs. Is this a bug or am I doing something wrong? Do you have a

Re: Keyboard short-cut for Replace All?

2007-04-06 Thread Jim Correia
On Apr 6, 2007, at 12:06 PM, Patrick James wrote: When I hold down the command key every other button has a keyboard equivalent except Replace All. Replace All and Find All do not have user visible keyboard shortcuts because it would require that the buttons be excessvively wide. I've

Re: Check Images

2007-04-04 Thread Jim Correia
On Apr 4, 2007, at 1:02 PM, Scott Heath wrote: That's what I thought, but it's not there. Has it moved, or is there some reason that option does not appear? Markup - Check - Document Links This will also check the src attribute of img elements. Jim --

Re: UTF-8 sort

2007-03-31 Thread Jim Correia
On Mar 31, 2007, at 10:00 AM, Maarten Sneep wrote: I may have missed this earlier in the thread, but can I control which locale is used for sorting in the sort dialog in BBEdit? BBEdit uses the default locale, which is determined by your international preferences. It cannot be

Re: UTF-8 sort

2007-03-29 Thread Jim Correia
On Mar 29, 2007, at 12:47 PM, Richard Taubo wrote: When I sort these characters in an UTF-8 document . . . , (comma = U+002C) . (full stop = U+002E) ; (semicolon = U+003B) . . . they end up like this: , (comma) ; (semicolon) .

Re: UTF-8 sort

2007-03-29 Thread Jim Correia
On Mar 29, 2007, at 9:20 PM, thane norton wrote: If you want to know WAY too much about how unicode characters are ordered, you can take a gander at this: http://www.unicode.org/unicode/reports/tr10/tr10-16.html The summary: Outside of the characters A-Z, you cannot guarantee that a

Re: Hidden metadata files

2007-03-21 Thread Jim Correia
On Mar 21, 2007, at 6:49 PM, Gerry Panganiban wrote: Is there any way to prevent BBEdit from creating the hidden metadata files on Samba/NSF mounted shares? Whenever I edit a file such as 'Foo.java', bbedit will create a file in the same directory named '._Foo.java', which unfortunately

Re: How to make Show Tab Stops setting stick?

2007-02-14 Thread Jim Correia
On Feb 14, 2007, at 7:01 AM, Jayson Garrett wrote: Is there any way in BBEdit 8.6 to make Show Tab Stops the default? As it is now, I have to turn that back on every time I restart the program. Set the value in Preferences - Text Status Display. Another question would be: is there any way

Re: 8.5/8.6

2007-01-11 Thread Jim Correia
On Jan 11, 2007, at 2:33 PM, Jonathan Lundell wrote: In the meantime, 8.6 acts like it's happy with my 8.5 serial number. That's nice. http://www.barebones.com/support/bbedit/updates.shtml BBEdit 8.6 is a free update for all registered users of 8.5 or later. Jim --

Re: 8.6 and Markdown

2007-01-11 Thread Jim Correia
On Jan 11, 2007, at 12:12 PM, Douglas Holschuh wrote: One question, though: Is there a built-in way to do a complete document conversion from Markdown to HTML or do I still need to use John Gruber's script to do that? To permanently convert from Markdown to HTML, use the Markdown script

Re: Question regarding scrolling behavior and Apple Mighty Mouse.

2007-01-10 Thread Jim Correia
On Jan 10, 2007, at 1:30 AM, Michael Jessop wrote: This may have already been covered at some point, but I did not see it in the FAQ. I have not used BBEdit since the OS 8.5 days, and just bought it to use with my Java development and I love the CVS features. I have noticed, however,

Re: O.K. I've narrowed the JSP problem down to...

2007-01-10 Thread Jim Correia
On Jan 10, 2007, at 1:30 AM, Michael Jessop wrote: First, we are using struts - and we do refer to tag libraries in our pages. Our form pages, which have no active logic, just forms that submit to actions, work fine in BBEdit. But pages that perform processing (logic, iterative, etc.)

Re: 8.6 confusion

2007-01-09 Thread Jim Correia
On Jan 9, 2007, at 4:49 PM, Jonathan Lundell wrote: (mine, partly) The link on http://www.barebones.com/support/bbedit/updates.shtml to purchase an 8.6 upgrade is 404, and the regular store page doesn't have 8.6. Is there a difference between the demo download and the normal download?

Re: Search/replace on svn files (no creator type)

2006-12-08 Thread Jim Correia
On Dec 8, 2006, at 7:52 AM, David Pratt wrote: Hi. On my mac most files that I co from svn have no creator associated with them. .txt files show as BBEdit but my .py and many others files do not. The trouble this causes is that search/replace over multiple folders does not seem to work

Re: Logfile fun.

2006-11-30 Thread Jim Correia
On Nov 30, 2006, at 5:01 PM, W. Thomas Leroux wrote: I have a rather large (~20MB) log file, and I want to delete all the lines that *don't* contain a string (in this case, a username). If the username can be described by a string, you don't need to learn grep. From the Text Menu, use

Re: CLM modules and grep questions...

2006-11-16 Thread Jim Correia
On Nov 16, 2006, at 10:18 AM, Frank Mantek wrote: a) I could not find anything in the docs about how to best test a named subpattern. i know how to test an unnamed numbered pattern, but to make sure the Pfunction_name pattern works, i would really like to test it... What do you mean by

Named groups in replace patterns (was Re: CLM modules and grep questions...)

2006-11-16 Thread Jim Correia
On Nov 16, 2006, at 11:05 AM, Seth Dillingham wrote: On 11/16/2006, Frank Mantek said: a) I could not find anything in the docs about how to best test a named subpattern. i know how to test an unnamed numbered pattern, but to make sure the Pfunction_name pattern works, i would really

Re: Codeless LM: getting functions marked

2006-10-30 Thread Jim Correia
On Oct 30, 2006, at 5:35 AM, Fritz Anderson wrote: On 27 Oct 2006, at 4:22 PM, Jim Correia wrote: I don't know Lua, by my recollection from the last time this came up was that it wasn't well suited to the pre 8.5 style of CLM function parsing since functions don't have a delimited block

Re: CLM for Lua: Partial solution, but why partial?

2006-10-30 Thread Jim Correia
On Oct 30, 2006, at 5:36 AM, Fritz Anderson wrote: The regular expression that works for me in Find is: (?s)^([ \t]*)function\s+(?Pfunction_name[A-Za-z_:.]+).+?\r\1end\b The intention is to match an end statement with the same leading whitespace as the function line. But putting it

Re: Codeless LM: getting functions marked

2006-10-27 Thread Jim Correia
On Oct 27, 2006, at 3:15 PM, Fritz Anderson wrote: BBEdit 8.5.1; Lua; function popup. There was a message earlier about getting Lua code folded, but (a) it was never resolved, and (b) Lua overloads 'end,' so I'm willing to believe folding would be tricky. (Folding braces, however, would

Re: Scripting Balance Fold menu

2006-10-26 Thread Jim Correia
On Oct 26, 2006, at 4:51 PM, Richard Taubo wrote: I can't see a reference to the Balance Fold menu in the BBedit scripting dictionary. Is there still a way to access this command through applescript? It is currently not scriptable. In what situations would you find it useful to automate

Re: CLM: How to specify filetype without name.ext?

2006-10-21 Thread Jim Correia
On Oct 21, 2006, at 2:13 PM, Jakob Peterhänsel wrote: Is there any of the 4 examples that looks at the content of the file to specify if it's a language it should handle? The python example shows how to do language guessing. You respond to kBBLMGuessLanguageMessage, and fill

Re: CLM: How to specify filetype without name.ext?

2006-10-20 Thread Jim Correia
On Oct 20, 2006, at 6:31 PM, Jakob Peterhänsel wrote: I'm trying to make a Codeless Language Module and would like to identify the language based on some text in the [first line of] the file. Is this possible, and if so how? This feature is currently only available to compiled language

Re: Small annoyance

2006-10-12 Thread Jim Correia
On Oct 12, 2006, at 4:08 PM, Richard Dyce wrote: Well, no reason. But it is 'upsetting' because, from that point on, BBEdit fails to recognise any further functions. SO if that's the first thing in a php class file, you don't get any further functions in the functions pop-up, or folds

Re: Line endings and MacOS X pasteboard

2006-10-10 Thread Jim Correia
On Oct 10, 2006, at 10:15 AM, [EMAIL PROTECTED] wrote: I'm getting confused with my line endings... Can someone enlighten me? I've got Unix line endings selected in BBEdit. When I copy two lines of text from BBEdit, and store them from the pasteboard in Unix into a file (using pbpaste on

Re: Feature Request: Clipboard Viewer

2006-10-07 Thread Jim Correia
On Oct 7, 2006, at 11:01 AM, Alain Paradis wrote: And to be clear, Paste Previous is not in the Edit menu. It is, but it isn't always visible. BBEdit takes advantage of Mac OS X's dynamic menus(*). In order to provide variants of commands without making the menus overwhelmingly large,

Re: tutorial for creating Codeless Language Modules

2006-09-25 Thread Jim Correia
On Sep 25, 2006, at 3:13 PM, Alex da Franca wrote: Am I right in assuming, that a language modul can only fold functions and there is no way to define other foldable entities like for example if-then or for, while and so on constructs? Codeless Language Modules can only fold functions. A

Re: Sort lines with grep pattern: names with prefixes

2006-09-20 Thread Jim Correia
On Sep 20, 2006, at 3:31 PM, Maarten Sneep wrote: How can I prepare a grep pattern for the sort command that does this? I need the last word (without spaces), before the first tab. I think that covers most names, in Dutch at least, although some French names (d'Hondt) will be sorted in the

Re: Code Folding in 8.5

2006-09-08 Thread Jim Correia
On Sep 8, 2006, at 8:18 PM, Roland Küffner wrote: I had similar problems with just the first function showing up in the function list. I can't pin down the source of the problem right now. Just a few hints which could help you to get closer: It might be necessary to quit and restart BBEdit

Re: 8.5 Questions... =)

2006-09-07 Thread Jim Correia
On Sep 7, 2006, at 11:48 AM, brian pink wrote: 2) I've lost the Room for the Finder preference for new windows. They seem to stretch clear to the bottom. Any fix? Make a new text window. Size it to the size you prefer. Choose Save Default Window from the Window menu. New text windows will

Re: Code Folding in 8.5

2006-09-07 Thread Jim Correia
On Sep 7, 2006, at 8:06 PM, Steven Elliott wrote: I must be missing something very obvious about folding. I even went so far as to read the manual (searched for folding) but am still clueless... Folding seems to work great for PHP but nothing for Java The java language module in 8.5.0

Re: Key equivalent for symbol in Anchor Dialog

2006-07-14 Thread Jim Correia
On Jul 14, 2006, at 12:48 PM, Matthew Galaher wrote: I have the same question, but only for this same symbol in the Find/ Replace dialog/window. Command-E works in the page, but once I get to the Find Dialog I have to pick up the mouse because Command E is mapped to 'match entire word'

Re: BBEdit plutil script?

2006-06-15 Thread Jim Correia
On Jun 15, 2006, at 3:40 AM, Bee wrote: From terminal and OnMyCommand I can use the following to convert a binary plist to a text (xml) plist. plutil -convert xml1 file Can you write it so it works from the BBEdit Unix Filters script menu? Is there a particular reason you want to use the

Re: multiple python interpreters

2006-05-10 Thread Jim Correia
On May 10, 2006, at 7:59 AM, Gregory Ramsperger wrote: The other option is to do: $ sudo mv /usr/bin/python /usr/bin/python2.3 $ sudo ln -s /usr/local/bin/python /usr/bin/python to rename the old python and replace it with the new. The second line is probably not really needed, but you

Re: template html files .tmpl in bbedit

2006-04-21 Thread Jim Correia
On Apr 21, 2006, at 8:40 AM, Ben Dougall wrote: could anyone tell me how to modify the default xhtml 1.0 transitional template please? (not on a site by site basis but always). There is not a global templates folder. But you can simulate that condition by having one folder with your

Re: Function Pop-up menu problems

2006-03-06 Thread Jim Correia
On Mar 6, 2006, at 4:29 PM, Carole E. Mah wrote: Thank you, but I am still confused. I changed this: ?xml version=1.0 encoding=utf-8? to this (assuming I interpreted your 'escape the ? into hex' instruction correctly): ?xml version=1.0 encoding=utf-8#x003F;