A simple add-on for google-docs that allows the user to make a selected google-doc table into an HTML table.
##To ''Install'' Since it is not yet published (which I am working on) you must paste the code in a google doc script editor. Follow the below instructions.
-
Create a new google doc, and create a table.
-
Then in the tabs above select
Tools->Script editor...
. -
From here if you have not used this before you will be prompted with an option to make a blank project. Select this option.
-
In the file that is opened up copy and paste the .gs file within provided in this repo.
-
Once this is done, open a new HTML file from the file tab above and copy and paste the .html file within provided by this repo. NAME THIS FILE --> Sidebar.html.
-
Next save the project as whatever you please.
##To use
-
Return to your original document that has the table.
-
Navigate to the tab called
Add-ons
where you should see the name (which you chose) of the add-on. Hover over it and select start. (If you do not see this refresh the page). -
Once this is done the add-on will appear as a side-bar, with a default column size of 2.
-
Select your table (that means highlight the whole thing as you would any text) and press the translate button in the add-on side-bar. The HTML should now appear in the text-area.
##Behavior In order for the add-on to work the table must be populated uniformly. This means that if you have a 4x4 table, each row must contain at least one thing in a cell.