Add HTML Table
0.02MB. Updated 2013-08-16. Only supports Anki 2.0.x.
Description
This add-on basically adds an html table in current note
Download
As add-ons are programs downloaded from the internet, they are
potentially
malicious. You should only download add-ons you trust.
This add-on previously supported Anki 2.0. You can
download the last version supporting
2.0 here. As Anki 2.0 has
been discontinued, no support is available for this version.
Reviews
on
1464825600
impovements
I'd like to contact the creator for an update, but there is no contact information here
@Add lines between cells:
you should do that through CSS:
- focus any input field
- click button "Cards..." (shortcut: Ctrl + L)
- add your CSS in the middle box.
something like this should work
table td
{
border:solid, border-width:1px;
padding:10px
border-collapse:collapse
}
@ focus & two cols/lines:
- go to:
def on_html_table_clicked(self):
- AFTER
form.setupUi(d)
- Insert:
# set initial values
form.spinBox.setValue(2)
form.spinBox.setValue(2)
# make the first box be selected by default
form.spinBox.selectAll()
form.spinBox.setFocus()
on
1408665600
Change dialog box to English & Table to Lines
I believe this is an excellent addon. I made the following changes to the script to make the dialog box in English and the table to have borders. Please note that indents are important.
(1) To change the dialog box to only have English Words
Go to the following file:
addons\html_table_addon\forms\setupadd.py"
Replace the following:
def retranslateUi(self, Dialog):
Dialog.setWindowTitle(_("Configurar tabela"))
self.label_2.setText(_("Colunas"))
self.label.setText(_("Linhas"))
self.checkBox.setText(_("Linha de Cabecalho"))
with:
def retranslateUi(self, Dialog):
Dialog.setWindowTitle(_("Table Setup"))
self.label.setText(_("Rows"))
self.label_2.setText(_("Columns"))
self.checkBox.setText(_("Column Headings"))
(2) To add borders to the table, go to the following file:
Anki\addons\html_table_addon\html_table_addon.py"
change the following:
# monta a tabela
h_table = "
to:
# monta a tabela
h_table = "
on
1403222400
Two slightly odd features
This does what it's supposed to and will probably be useful for those who frequently add tables to their cards (I use cloze deletion on them frequently and have previously added them by copying and pasting existing cards).
Two notes:
1) The interface is in Portuguese. This isn't a practical issue since it's quite obvious what the controls are for, but it looks kind of odd to have a Portuguese dialog box in my English Anki.
2) The tables don't have any borders. Some people might like this, but I find it makes it rather difficult to edit the table when you can't see the edges. Fortunately this is easy to customize; just edit Anki/addons/html_table_addon/html_table_addon.py line 127 to contain some border/style information. (If what you add includes double quotation marks, you need to escape them with \".)
To the reviewer with the title "Question on Add HTML Table add-on": Those look like curly quotes, while you need straight quotes for Python to understand it. You can copy one of the ones that's already there to make sure it works right.
on
1391731200
Question on Add HTML Table add-on
This is useful, but like the last reviewer I prefer visible borders between cells.
Unlike the last reviewer, I haven't been able to add border/style info to line 127 of the file at Anki/addons/html_table_addon/html_table_addon.py have failed, even though I escaped the double-quotes with \" as suggested.
Original code: h_table = "
I tried: h_table = "
Error message: EOL while scanning string literal
Suggestions?