Adding new comment symbol to R.plist
Hi, I do a lot of R coding. I found the R.plist file available here: http://www.truerwords.net/articles/bbedit/codeless_language_module.html ...and put it in the Application Support directory for BBedit, and it works fine. However, now I am doing some stuff with Sweave, which has a mixture of R and LaTeX code. I can make .Snw files get the same color scheme as R files by applying the R.plist file to them. However, in LaTeX, the comment symbol is %. Is there a way to add this as a second comment symbol to R.plist? In R.plist, I tried changing R.plist from: == keyComment Pattern/key string(?x: (?gt; [\#].* $ ) )/string == ...to... == keyComment Pattern/key string(?x: (?gt; [\#].* $ ) )/string keyComment Pattern/key string(?x: (?gt; [\%].* $ ) )/string == ...but this only makes % the comment symbol, apparently replacing # (so now, % are grayed out, but # lines are just plain black text). Any help much appreciated! Cheers, Nick -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: Clipping display order
Well, it's a long long time since the first time someone asked to have the possibility to better control the clippings and on a per-language basis. It seems they don't care, or don't want, or just they can't. I'm with you. On 26 Ott, 22:59, Chris theboerg...@gmail.com wrote: How do you control the clipping set display order for completions? My PHP clipping set shows up in my HTML docs even when setting Change Set to none. This has the annoying effect of displaying 50 PHP classes and functions that start with p while the HTML completion for paragraph is way, way below in the completions dropdown. Sure I can remove the PHP completions but then I have no PHP completions available to me when I switch to a PHP document. Any thoughts? -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: Clipping display order
Well, it's a long long time since the first time someone asked to have the possibility to better control the clippings and on a per-language basis. It seems they don't care, or don't want, or just they can't. I'm with you. On 26 Ott, 22:59, Chris theboerg...@gmail.com wrote: How do you control the clipping set display order for completions? My PHP clipping set shows up in my HTML docs even when setting Change Set to none. This has the annoying effect of displaying 50 PHP classes and functions that start with p while the HTML completion for paragraph is way, way below in the completions dropdown. Sure I can remove the PHP completions but then I have no PHP completions available to me when I switch to a PHP document. Any thoughts? -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: BUG: FTP File Browser
Yes, in the FTP browser. No matter what I am doing, I can not get it working. I've also checked the Preferences - FTP-Settings -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: BUG: FTP File Browser
On Wed, Oct 27, 2010 at 1:05 PM, DJ N-4ceR sukram.rel...@googlemail.com wrote: Yes, in the FTP browser. No matter what I am doing, I can not get it working. I've also checked the Preferences - FTP-Settings Did you send an email to supp...@barebones.com? They'll be able to tell you if it's a known problem or not. --Kerri -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: BUG: FTP File Browser
Not yet, just wanted to know if somebody else does have the same problem. -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
converting to ascii in the scratchpad for a applescript/service
I can script BBEdit to convert text in BBEdit. I’m having trouble with making it into a service: getting text temporarily into the scratchpad, converting to ASCII there, returning it ... that has stumped me, for some reason. Halp? The infrastructure for getting text in and out is fine, I think. I just don’t seem to know how to convert the stuff on the scratchpad to ASCII. on run {input, parameters} tell application BBEdit set wasVisible to visible of scratchpad window set contents of scratchpad window to input set w to open scratchpad window CONVERT TO ASCII text of w ??? if not wasVisible then close w return contents of scratchpad window end tell end run Thanks in advance. -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: BBEdit 9.6
On 10/26/10 at 11:30 PM, rar...@banet.net (Robert A. Rosenberg) wrote: At 20:48 -0400 on 10/26/2010, Gabriel Roth wrote about Re: BBEdit 9.6: I just noticed the dynamic credit for unindicted co-conspirators. Oh, my name's in there! I wonder what I did? Cool. Not to burst your bubble but this is something I have seen in other programs. The user's name is dynamically added to the About Menu - I forget where it finds the name to use (mine shows up as all caps of my First and Last name without my middle initial and it does not match the license for the program which has the initial and is Title Case). This appears to be what is going on with the unindicted co-conspirators list. That is I see my name as the last entry, but do not see names of other posters who indicated they were also unindicted co-conspirators. Now, I wonder if there is any significance to the 4 names I see ahead of my in this entry. -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: BBEdit 9.6
Yes, it's pulling your user name to populate it. To test it, I have a guest account on my laptop called Guest User, I logged in as Guest User and started BBEdit. The name Guest User showed up as the last entry. To BB: Nice touch! :) - Steve On Wed, Oct 27, 2010 at 6:33 PM, Bill Rowe readli...@sbcglobal.net wrote: On 10/26/10 at 11:30 PM, rar...@banet.net (Robert A. Rosenberg) wrote: At 20:48 -0400 on 10/26/2010, Gabriel Roth wrote about Re: BBEdit 9.6: I just noticed the dynamic credit for unindicted co-conspirators. Oh, my name's in there! I wonder what I did? Cool. Not to burst your bubble but this is something I have seen in other programs. The user's name is dynamically added to the About Menu - I forget where it finds the name to use (mine shows up as all caps of my First and Last name without my middle initial and it does not match the license for the program which has the initial and is Title Case). This appears to be what is going on with the unindicted co-conspirators list. That is I see my name as the last entry, but do not see names of other posters who indicated they were also unindicted co-conspirators. Now, I wonder if there is any significance to the 4 names I see ahead of my in this entry. -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: BBEdit 9.6
On 27 Oct 2010, at 9:46 PM, Steve deRosier wrote: Yes, it's pulling your user name to populate it. To test it, I have a guest account on my laptop called Guest User, I logged in as Guest User and started BBEdit. The name Guest User showed up as the last entry. Yeah, I was in the middle of writing an excited email to my closest friends when it occurred to me that I should try it from another account. I don't know what made me check, but I'm glad I did before I made an ass of myself. — F -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
grep to strip out double hyphens from HTML comment?
Hi everyone Amidst all the excitement for the new v.9.6, I hope there is time for my grep Q: I am trying to make a grep search string which finds any HTML comment that has a double hyphen inside itself. It should find any HTML comment which: - starts with !--, - ends with --, - spans any number of lines, - contains two consecutive hyphen chars which are not part of the opening !-- or closing --. It should NOT match across multiple HTML comments. The find string must preserve anything it finds inside the HTML comment which is not the double hyphen.. so that I can replace in a way to just effectively strip out the double hyphen. I have been successful to create a grep for each of these criteria separately, and also some greps which include several of the criteria.. but so far I have not been able to come up with one which meets all my criteria. After making sincere effort, it will be very rewarding to see how one of you grep wizards does it. Thanks for any reply! -Govinda -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: BBEdit 9.6
I just installed the update on a MacBook Pro running 10.5.8 and it appears to have broken at least a portion of the search and replace function. After re-installing the entire package, rebooting, and going through the usual rigamarole, trying to search and replace (escaped) \r \r\r with \r\r causes an immediate BBEdit crash when trying to enter the replacement string. Sometimes, it breaks when trying to enter a search string with an escaped character. I'm not a happy camper, as this means that I can do approximately zero useful work with the improved version. Lee-Anne Phillips On Oct 26, 9:23 am, Rich Siegel sie...@barebones.com wrote: Good { morning, afternoon, evening }, We are pleased to announce the release and immediate availability of BBEdit 9.6. This is a free upgrade for anyone using 9.0 through 9.5.1, and includes a number of new features, refinements to existing features, and fixes for reported problems. The high points of this new version are: * document creation and validation support for HTML5; * improved contextual completion support for tags and attribute names in HTML documents; * enhanced completion of CSS property names (including vendor-specific properties); * extensive internal rework to improve performance and memory utilization; * Lots of other little additions and changes to improve your life with BBEdit in subtle ways. A complete digest of the changes is available here: http://www.barebones.com/support/bbedit/arch_bbedit96.html If you're already using BBEdit 9 (or a demo), just choose Check for Update from the BBEdit menu to get the update, or go to the BBEdit updates page: http://www.barebones.com/support/bbedit/updates.html *** Please note that the system requirements have changed. BBEdit 9.6 requires Mac OS X 10.5 or later (10.5.8, 10.6.4 or later recommended). If you are running an older version of the OS, Check for Updates will not offer you the new version. If you're using an older version of BBEdit, you can download the 9.6 demo from here to try it out: http://www.barebones.com/products/bbedit/demo.html Enjoy, R. -- Rich Siegel Bare Bones Software, Inc. sie...@barebones.com http://www.barebones.com/ Someday I'll look back on all this and laugh... until they sedate me. -- Rich Siegel Bare Bones Software, Inc. sie...@barebones.com http://www.barebones.com/ Someday I'll look back on all this and laugh... until they sedate me. -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: converting to ascii in the scratchpad for a applescript/service
Jim, thank you. This was a case of so-close-yet-so-far, and I missed the final bit of syntax as much out of fatigue as anything else. You know how it is. I appreciate the boost over that final step. ;-) But I must admit the dictionary didn’t really help, and probably wouldn’t have before I posted. Despite years of tinkering experience, application AS dictionaries continue to seem rather opaque to me (probably mostly for lack of usage examples). Even looking at the entry now that I know what works, it’s still not at all clear to me. The quizzical description for that parameter (it actually reads: “replace the text to be processed with the results?”) hardly inspired my confidence in that direction … Anyhoo, thanks again. On Oct 27, 2:35 pm, John Delacour johndelac...@gmail.com wrote: At 13:50 -0700 27/10/2010, Paul Ingraham wrote: I just don't seem to know how to convert the stuff on the scratchpad to ASCII. on run {input, parameters} tell application BBEdit set wasVisible to visible of scratchpad window set contents of scratchpad window to input set w to open scratchpad window CONVERT TO ASCII text of w ??? if not wasVisible then close w return contents of scratchpad window end tell end run Look at the dictionary. convert to ASCII text of w with replacing target JD -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: BBEdit 9.6
On Oct 27, 4:22 pm, Lee Anne leeannephill...@gmail.com wrote: I just installed the update on a MacBook Pro running 10.5.8 and it appears to have broken at least a portion of the search and replace function. After re-installing the entire package, rebooting, and going through the usual rigamarole, trying to search and replace (escaped) \r \r\r with \r\r causes an immediate BBEdit crash when trying to enter the replacement string. Sometimes, it breaks when trying to enter a search string with an escaped character. Coincidentally, I just tried to do a Find/Replace. In the Replace field I entered: \ No crash yet. Then: r Ka-boom! I didn't try other escaped strings. So you're not alone. Fortunately it is trivial for me to use Time Machine to grab the previous version of BBEdit from my system, so I can continue working till this issue is resolved. --steve -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: grep to strip out double hyphens from HTML comment?
On Wed, Oct 27, 2010 at 08:58:37PM -0700, Govinda wrote: Hi everyone Amidst all the excitement for the new v.9.6, I hope there is time for my grep Q: I am trying to make a grep search string which finds any HTML comment that has a double hyphen inside itself. It should find any HTML comment which: - starts with !--, - ends with --, - spans any number of lines, - contains two consecutive hyphen chars which are not part of the opening !-- or closing --. It should NOT match across multiple HTML comments. The find string must preserve anything it finds inside the HTML comment which is not the double hyphen.. so that I can replace in a way to just effectively strip out the double hyphen. This will find HTML comments that contain exactly one occurence of -- in the middle of the comment and strip it out: Find (?s)(!--(?(?:(?!--).)*))--(?!)((?(?:(?!--).)*)--) Replace \1\2 This will find HTML comments that contain at least one occurence of --, and strip out the first one; you could run it multiple times to strip them all: Find (?s)(!--(?(?:(?!--).)*))--(?!)(.*?--) Replace \1\2 If you want to strip an arbitrary number of occurences of -- within each comment, that's not possible with a single grep, because you need a loop within a loop. (?...) means don't backtrack within the subexpression. In this case I know backtracking couldn't result in a match, so it would be a waste of time to try it. (?:(?!--).)* means match any number of characters, as long as there's no --; in other words, it matches up to the next --. Note that neither of these regexes will work as intended if the file contains comments like !- or !-- hello world ---. Or even !-- hello world --. Hopefully you don't have anything like that in your file. :) Ronald -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: BBEdit 9.6
On 27.10.2010 at 13:08 Uhr steve.piercy@gmail.com wrote:Steve Piercy I found a way to both reliably replicate and avoid the issue. I cannot replicate this issue and BBEdit just behaves as expected. Holger -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit