Re: Table Editor?

145 views
Skip to first unread message

go...@fred.net

unread,
Aug 27, 2012, 12:31:57 PM8/27/12
to bbe...@googlegroups.com
FWIW, I will often create the table of data in Excel or another spreadsheet program, then copy&paste into a text document in BBEdit and
  1. replace Tabs with </td><td>
  2. replace end of line with </tr><tr>
The rest is just the actual table tags, headers and styling.

On Mon 12/08/27 11:56 , MST3K <br...@whattheheller.com> wrote:

Hi,
I'm needing something to make creating HTML tables a little easier.  I like BBEdit in general, but when it comes to the content creating and editing stages in tables, it really bogs me down to wade-through the code and keep trying to figure out where I am.  Any suggestions for something to make this a little slicker, and not more complicated?  A simple (cheap!) WYSIWYG app that will allow me to edit directly in the cells, not add a bunch of junk code, then copy/export back to BBEdit would be great.  Even CSS would be optional.  Or should I be looking more into using some kind of markdown within BBEdit for this? 

Many thanks,
Brian

--
--
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 bbe...@googlegroups.com
To unsubscribe from this group, send email to
bbedit+un...@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 "sup...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
 
 
 

Robert A. Rosenberg

unread,
Aug 27, 2012, 1:37:47 PM8/27/12
to bbe...@googlegroups.com
At 12:31 -0400 on 08/27/2012, go...@fred.net wrote about Re: Table Editor?:

FWIW, I will often create the table of data in Excel or another spreadsheet program, then copy&paste into a text document in BBEdit and
1.      replace Tabs with </td><td>
2.      replace end of line with </tr><tr>

Your method is almost enough. Two changes however. First start with:

<table><tr><td> and </table> and paste the Excel data just before the </table>.

The end of line replace in (2) should be </tr><tr><td> (you need a <td> before the first cell on each row). Also delete the extra </tr> just before the </table> after the mass find/replace of the end of lines.

This will bracket each row with <tr>...</tr> and each cell with <td>...</td>.

Rod Buchanan

unread,
Aug 27, 2012, 2:46:10 PM8/27/12
to bbe...@googlegroups.com
Or do this:

1. Highlight your pasted data

2. Select Markup -> Tables... -> Convert to Table

--
Rod Buchanan

Robert A. Rosenberg

unread,
Aug 28, 2012, 12:01:50 AM8/28/12
to bbe...@googlegroups.com
At 13:37 -0400 on 08/27/2012, Robert A. Rosenberg wrote about Re: Table Editor?:

At 12:31 -0400 on 08/27/2012, go...@fred.net wrote about Re: Table Editor?:

FWIW, I will often create the table of data in Excel or another spreadsheet program, then copy&paste into a text document in BBEdit and
1.      replace Tabs with </td><td>
2.      replace end of line with </tr><tr>

Your method is almost enough. Two changes however. First start with:

<table><tr><td> and </table> and paste the Excel data just before the </table>.

The end of line replace in (2) should be </tr><tr><td> (you need a <td> before the first cell on each row). Also delete the extra </tr> just before the </table> after the mass find/replace of the end of lines.

OOPS - The reference to the extra </tr> should, of course, be to the <tr>.
Reply all
Reply to author
Forward
0 new messages