Re: Ampersands?

2020-02-17 Thread jgill
escapes in your JavaScript code, like so: > > > > Hope this helps. > -sam > > On 17 Feb 2020, at 10:13, jgill wrote: > > Hi, > > I'm writing a web page that inserts specific emoji into a text box with > Javascript. > > > > This works perfect

Re: Ampersands?

2020-02-17 Thread jgill
, the > syntax checker found no errors, and the emoji rendered as expected. > > Hope this helps. > --Kerri > > On Mon, Feb 17, 2020 at 10:13 AM jgill > wrote: > >> Hi, >> >> I'm writing a web page that inserts specific emoji into a text box with >

Ampersands?

2020-02-17 Thread jgill
Hi, I'm writing a web page that inserts specific emoji into a text box with Javascript. This works perfectly as expected but BBEdit is insisting that I need to change the ampersands to and if I format the page, it changes all my ampersands to and breaks the Javascript. How can I write

Re: GREP cleanup

2019-12-08 Thread jgill
Thank you Bruce, I used to know this but, at 74, sometimes I need a reminder. On Sunday, December 8, 2019 at 5:30:05 PM UTC, Bruce Van Allen wrote: > > On 12/8/19 at 4:52 AM, joegille...@gmail.com (jgill) wrote: > > >I need to clean up some OCR documents to

GREP cleanup

2019-12-08 Thread jgill
I need to clean up some OCR documents to find characters that are NOT [A-Z|a-z|0-9|:] What is the BBEdit GREP syntax for an invered search (-v) ? -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "supp...@barebones.com"

Re: Tricky regex question

2019-02-02 Thread jgill
e of a song dim > > C D E F G A B C#m > > A small flower > > C D E F G A B♭ C > > Am I going > __ > > Depending on the result you desire either replace or extract with: > ^([A-G\s])(?(1)([A-Gm679#♭iu\s]+)$) > > > On Saturday, February 2,

Re: Tricky regex question

2019-02-02 Thread jgill
I need to identify chord lines and non-chord lines so that I can style them differently on a web page. Remember, I'm not just looking for [A-G] but A7, Am, A#, A♭dim etc On Saturday, February 2, 2019 at 5:36:42 PM UTC, Marek wrote: > > Hello jgill! > > > You forgot to tell us, w

Tricky regex question

2019-02-02 Thread jgill
I've been banging my head all afternoon trying to derive a regex the will identify lines (of a song) that contains chords. eg E B7 E A Am E This is a line of a song E This is a line of a song B7 E E7 This is a line of a song A This is a line of a

Re: Grep replace in a column

2018-03-23 Thread jgill
lution, but you can use the alt/option key to make a > zero-width vertical selection in front of a column of times, then type "H" > or "L" to add that letter to the column. > > > On Thu, Mar 22, 2018, at 9:02 PM, jgill wrote: > > I have seven columns of

Grep replace in a column

2018-03-22 Thread jgill
I have seven columns of tide times separated by tabs and I want to add a letter to the beginning of each time in a column. H=High L=Low I have found how to select a column of text with the alt key but when I put the search and replace (/d/d:/d/d) - H\1 into the dialog, the 'Replace All' item

Re: HTML5 support

2018-01-22 Thread jgill
Canvas, translate, fade etc. etc. On Thursday, January 18, 2018 at 5:23:09 AM UTC, Robert wrote: > > I was just creating some quick web pages and noticed that the "HTML Tools" > palette doesn't seem to have HTML5 support. Is that planned? > > -- > Bob > -- This is the BBEdit Talk public

Re: Preserving hyperlinks - Markdown to HTML to PDF

2017-12-10 Thread jgill
Links don't work in BBEdit Preview deliberately. On Saturday, December 9, 2017 at 5:14:30 AM UTC, Christopher Finazzo wrote: > > I have a document (written in Markdown) which includes links to external > URLs. Usually, when finished, I'll export to HTML and open the resulting > file again in

Re: Are there any special features about this code editor?

2017-11-30 Thread jgill
Madelyn, you don't work for Barebone's PR agency by any chance? If so, you are doing a great job ;?) On Monday, November 27, 2017 at 4:52:32 PM UTC, Madelyn Bingham wrote: > > Can someone tell me what makes BBEdit different or better than other code > editors? I understand it is mostly geared

Re: Regex help please

2017-11-19 Thread jgill
> > As for your requirement, this might be a simpler approach: > > str.replace(/_([^\d]|$)/g, '%20$1') > > i.e., replace any underscore followed by a non-digit (or occurring at > the end of string) with %20. > > On Sun, Nov 19, 2017 at 11:04 AM, jgill <joegille...@gmai

Regex help please

2017-11-19 Thread jgill
I am trying to replace all instances of an underscore with %20 except when the underscore if followed by a digit using Javascript. The replacement works fine in BBEdit var str='Test_One_Two_Three_101117a.JPG'; var pattern='/(.*?)_(\d\d\d\d\d\d\w.JPG)/'; var r=str.replace(pattern,'\1%20\2');

Re: Deleting a named div

2017-10-29 Thread jgill
On Sunday, October 29, 2017 at 12:09:11 PM UTC, Greg Raven wrote: > > First, "class='day_report'" isn't a named div. Second, if you are > validating to HTML5, you would use ID instead of NAME. Third, using either > ID or NAME, there should be only one of them on the page. > But, it's a class

Deleting a named div

2017-10-28 Thread jgill
I can do this in BBEdit and I can do it easily with Applescript, because it can search backwards for (?s).*? - but how can I search backwards with JavaScript? I want to be able to delete the last instance of this div on a web page. Also, can I run JavaScript from within BBEdit on the front

Re: BBEdit 12 columns

2017-10-15 Thread jgill
I don't want to put my bank account statement online, for obvious reasons but if I change '' to '&', it works as expected in Numbers 4.3 otherwise it doesn't. The semicolon throws everything out. -- This is the BBEdit Talk public discussion group. If you have a feature request or would like

Re: BBEdit 12 columns

2017-10-15 Thread jgill
It has nothing to do with BBEdit, the downloaded CSV file doesn't parse correctly in Numbers. The confuses the column breaks so I only get two columns which border on the semicolon - but I can fix this by replacing '' with '&' in BBEdit. It is the bank that is screwing things up and I have

Re: BBEdit 12 columns

2017-10-15 Thread jgill
Yes, converting to & is not the issue here. The issue is that the downloaded file won't open correctly in Numbers without processing it in BBEdit and BBEdit won't give me the columnar view by itself, so it is a two step process. Okay, I can live with that and build a suitable script to handle

Re: BBEdit 12 columns

2017-10-15 Thread jgill
was about viewing CSV files in columns in BBEdit, I can parse the maverick Bank CSV files into proper CSV. On Sunday, October 15, 2017 at 3:45:25 PM UTC+1, jgill wrote: > > Unless I am completely misunderstanding, I thought that BBEdit 12 could > open a CSV file and display it in col

Re: BBEdit 12 columns

2017-10-15 Thread jgill
I think that the format of the Bank's CSV has been script generated and is not strictly Excel CSV format. -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group.

Re: BBEdit 12 columns

2017-10-15 Thread jgill
Thanks for the script Ted but it does absolutely nothing to my CSV file. I've tried running it from Script Debugger and from the BBEdit script menu but there are no changes to the file whatsoever. On Sunday, October 15, 2017 at 3:45:25 PM UTC+1, jgill wrote: > > Unless I am comp

BBEdit 12 columns

2017-10-15 Thread jgill
Unless I am completely misunderstanding, I thought that BBEdit 12 could open a CSV file and display it in columns like a spreadsheet. I can find any way to do this. My bank allows me to download a CSV file of my account and Numbers doesn't know how to handle it because of the quote marks and

Re: Change the format of generated CSS

2017-08-21 Thread jgill
I use another program which is complementary to BBEdit called CSSEdit. It can be configured to style the layout as you wish but only in external style sheets. BBEdit and CSSEdit work well together giving the best of both worlds. On Monday, August 21, 2017 at 10:18:29 PM UTC+1, Christopher

Re: Highlight colour in differences windows?

2017-02-25 Thread jgill
can scroll through them with the up/down arrow keys. I was expecting ALL the differences to be highlighted without doing anything. So, what are these pale grey backgrounds to some lines, alternate paragraphs??? On Saturday, February 25, 2017 at 3:42:50 PM UTC, jgill wrote: > > Word 2016 f

Highlight colour in differences windows?

2017-02-25 Thread jgill
Word 2016 for Mac can't display the differences between two documents so I have taken two 75,000 word documents as text files into BBEdit were I can see the differences between the two documents and have synchronised scrolling between them. So far, so good. The problem is that the differences

Re: Fix duplicate divs caused by old Adobe GoLive bug?

2017-02-21 Thread jgill
That is a problem with all WYSIWYG editors. If you don't get it right first time, you get silly situations like those nested tags and nested divs. There are two ways to tackle this. Manually: using BBEdit's syntax checker to find errors in the markup and fixing them individually.

Re: CSS editing

2017-02-09 Thread jgill
Yes, I would normally only have one master style sheet for an entire site, maybe a second one for print if that was necessary. Any slight modifications to the master styles can be made on the individual pages and take precedence over the master styles. The last style sheet linked in the takes

Re: CSS editing

2017-02-09 Thread jgill
I use Firebug in Firefox for this job. On Wednesday, February 8, 2017 at 4:44:33 PM UTC, Simdude wrote: > > I've been searching the manual but haven't found how you quickly get to > CSS attributes. i.e., I have a div with some id and want to edit its > attributes that are in one or more css

Re: Applescript automatic help please

2016-12-09 Thread jgill
"/Users/jgill/Documents/Web/CHOG/CHOG1and1/Archive Photos/Juvenile-Shag.jpg" --> path to image I want to import using 'choose file' "/Users/jgill/Documents/Web/CHOG/CHOG1and1/Commoner Species Photos/Shag.htm" --> path to html file using 'set thepath to file of thef

Applescript automatic help please

2016-12-09 Thread jgill
I am trying to automate the process of importing an image and adding a caption, which will be parsed out of the file name. I can manage that bit, where I am stuck is with using 'choose file' to produce the *relative* file path to the page I am working on. I could laboriously split and subtract

Preview in BBEDit not updating

2016-11-07 Thread jgill
Does anyone have a magic solution to clear the BBEdit Preview image cache without quitting BBEdit and relaunching? The refresh button does not work nor does closing the preview and re-openng it. I'm using an external stylesheet, modifying it and re-saving. -- This is the BBEdit Talk public

Applescript returning \1 from grep search

2016-09-30 Thread jgill
I need to extract the date from September 30th in a HTML document I can search using - set theMonth to find "\\s*(.*?)\\s*" searching in text 1 of text document "index.html" options {search mode:grep} with selecting match How can I access the \1 reference inside the brackets in Applescript?

Re: Format CSS ?

2016-08-10 Thread jgill
I've already got an Applescript to do that, Greg. I just wondered if I was missing something hidden in BBEdit as there is in CSSEdit. Maybe a feature request ;?) On Tuesday, August 9, 2016 at 11:55:23 AM UTC+1, jgill wrote: > > How can I get BBEdit to format my CSS like this when I

Re: iCloud, iOS version of BBEdit

2016-08-09 Thread jgill
For me, BBEdit's standout feature is its live preview of HTML pages and integration with Applescript, Perl etc. I don't know if anything else does this. Certainly not Textastic, which is okay as a temporary substitute. I wouldn't want to have to markup a full page with it, never mind a whole

Format CSS ?

2016-08-09 Thread jgill
How can I get BBEdit to format my CSS like this when I click on 'Format CSS'? #a-style { display: block; float: left; clear: both; } #another-style { width: 20px; height: 10px; } -- This is the BBEdit Talk public discussion group. If you have a feature

Re: iCloud, iOS version of BBEdit

2016-08-08 Thread jgill
TextWrangler perhaps, I don't see the point of having BBEdit on iPad, I mean, what features would you leave out? -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the

Re: CSS preview

2016-01-04 Thread jgill
You need to save the CSS document before doing the refresh, alternatively, add the CSS into the HTML document while you are working on it and then copy and paste it into a CSS file when you are happy with the results. On Monday, January 4, 2016 at 3:05:38 PM UTC, Valentín Benavente wrote: > > >

Re: Two side-by-side documents in full-screen mode?

2015-10-28 Thread jgill
Window menu > Arrange > Tile across You can now set the menu bar to automatically hide itself in System Preferences > General. On Wednesday, October 28, 2015 at 12:15:34 AM UTC, TJ Luoma wrote: > > > Is there a way to see two BBEdit documents side-by-side in full-screen > mode in El Capitan? >

Refreshing BBEdit Preview

2015-05-24 Thread jgill
I am testing out some responsive web pages using BBEdit's Preview window and for some reason it is not updating as it should. I am changing the CSS in CSSEdit, saving and pressing the 'refresh' icon at the top left of the Preview and nothing is happening. Any other browser shows the changes but

Re: Change CSS formatting

2015-04-11 Thread jgill
When you have applied the BBEdit CSS format. you have something predictable to work with and it is a simple matter of using Search and Replace to tweak the formatting. Without knowing exactly what you are trying to achieve, it is impossible to give any specific examples. On Saturday, April 11,

Re: Twitter feed causing problems

2015-02-28 Thread jgill
I have found a solution. Commenting out the JavaScript in the Twitter widget does the trick so I've written an AppleScript to toggle the // on and off. On Friday, February 27, 2015 at 10:46:56 AM UTC, jgill wrote: I've just been asked to add a Twitter Feed widget to a web page

Twitter feed causing problems

2015-02-27 Thread jgill
I've just been asked to add a Twitter Feed widget to a web page but it is causing great problems with BBEdit. I have the page open in BBEdit Preview and every tiny change I make to the markup causes a page to open in Firefox (my default browser) with a single pixel gif in the middle. The page

Snippets problem

2015-01-20 Thread jgill
I have just tried to use my Snippets plug-in (1.1) for the first time since upgrading to Mac OS X 10.10.1 (Yosemite). When the palette opens, all the snippets are there but as soon as the mouse pointer passes over the list, they all disappear. Can anyone else concur? -- This is the BBEdit

Re: Edit Show Clipboard (BBEdit 10)

2015-01-03 Thread jgill
'Show Clipboard' is in the Edit Menu of the Finder, not BBEdit. On Saturday, January 3, 2015 3:11:21 PM UTC, Jean-Christophe Helary wrote: Hello all, I'm browsing the tutorial and I'm surprised to see a feature that does not seem to appear in the interface. On page 22, it says Like the

Re: Text factory - transform files in folder A and write to folder B, possibly with new extension?

2014-12-04 Thread jgill
Here is a simple, low-tech way to do it. Duplicate the folder with the original files with a right-click. Run your text factories on the duplicates. Use 'A Better Finder Rename' (http://www.publicspace.net/ABetterFinderRename/) to change the extensions. On Wednesday, December 3, 2014

Re: Gentle Compact Formatting

2014-11-18 Thread jgill
Gentle compact strips-out unnecessary spaces and returns from the body of the HTML giving a marginally smaller file size. How it appears on you machine depends on how you have set line wrapping in Preferences. On Tuesday, November 18, 2014 12:57:08 PM UTC, Lewis Butler wrote: When I choose

Re: AppleScript Save as...

2014-11-02 Thread jgill
as expected. I realise that I could set a variable to the text of the selection but I'm still stuck in my old HyperCard ways ;?) On Saturday, November 1, 2014 4:56:44 PM UTC, jgill wrote: I'm using an AppleScript to generate a web page which needs to be saved to a specific local folder. I

Re: AppleScript Save as...

2014-11-02 Thread jgill
On Saturday, November 1, 2014 4:56:44 PM UTC, jgill wrote: I'm using an AppleScript to generate a web page which needs to be saved to a specific local folder. I can't figure out how to access BBEdit's Save as... operation. Save is covered in the BBEdit Dictionary but not Save

Re: AppleScript Save as...

2014-11-02 Thread jgill
Hi Cristopher, I managed to do it with one script. The timing issues I had with my old MacPro are not there with my new iMac. It's much faster. Can I ask how you manage to insert colour-coded scripts into this forum? Thanks, Joe On Saturday, November 1, 2014 4:56:44 PM UTC, jgill wrote

AppleScript Save as...

2014-11-01 Thread jgill
I'm using an AppleScript to generate a web page which needs to be saved to a specific local folder. I can't figure out how to access BBEdit's Save as... operation. Save is covered in the BBEdit Dictionary but not Save as... -- This is the BBEdit Talk public discussion group. If you have a

Re: AppleScript Save as...

2014-11-01 Thread jgill
On Saturday, November 1, 2014 4:56:44 PM UTC, jgill wrote: I'm using an AppleScript to generate a web page which needs to be saved to a specific local folder. I can't figure out how to access BBEdit's Save as... operation. Save is covered in the BBEdit Dictionary but not Save

Re: Save Palette Positions

2014-10-31 Thread jgill
This bug has been reported and is being addressed. On Friday, October 31, 2014 1:18:24 PM UTC, BoDe wrote: Hi all-- Is there a way to save palette positions once I set them? Everytime I start up BBEdit, it forgets the positions, and places the palettes I keep open to the far right of the

Re: Save Palette Positions

2014-10-31 Thread jgill
Fixed in 11.0.1! On Friday, October 31, 2014 1:18:24 PM UTC, BoDe wrote: Hi all-- Is there a way to save palette positions once I set them? Everytime I start up BBEdit, it forgets the positions, and places the palettes I keep open to the far right of the screen. Using v11. Thanks.

Re: A great little feature I would like very much in BBEdit...

2014-10-08 Thread jgill
Dave is right. In a three column design, the left column could be at the top of the HTML page, the middle column in the middle and the right column at the bottom. How could you possibly sync the scrolling except for the simplest of linear designs? On Monday, October 6, 2014 6:17:21 AM UTC+1,

Re: AppleScript delete selection

2014-06-06 Thread jgill
Thank you Christopher, Apart from your readability suggestions, which I take on board, you have put... set text of selection to instead of my set selection to I think this is what was causing my problem. It seems to work fine now. Cheers, Joe -- This is the BBEdit Talk public

Re: Open BBEdit image dialog with AppleScript

2014-06-04 Thread jgill
inserts placeholders *image* and then I replace those with the generated img.. tag. Thanks again, Christopher On Tuesday, June 3, 2014 10:11:35 AM UTC+1, jgill wrote: I wish that the BBEdit AppleScript Dictionary gave syntax examples! In a web page building script, I can do everything I