68 1
Contact Author Sign in to rate

Add Table

0.02MB. Updated 2021-07-11.
The author has shared 70 other item(s).


# Update notice If you installed before 2019-11-06 and updated and changed the config setting "table_style_css" you must adjust these to the new "table_style_css_V3" # Use The shortcut (default is "Ctrl+0") to insert a table and some styling defaults can be configured using the new configuration dialogue of 2.1: Tools>Add-ons, select the add-on and click on "Config". You can insert a table in two ways: 1. If you do not select any text, upon clicking the "Create a table button" (or pressing the shortcut) you will be presented with a dialog window asking you to specify some table properties (like number of rows, number of columns, alignment, styling). The dialog to insert tables looks like this: 2. If you have text selected you can usually convert a table (in a markdown-like format) into a full html table. header1 | header2 -|- elem1 | elem2 These will create a list with two columns and two rows. The -|- part is optional, but can be used to align the column to the left (:-), right (-:) or to the center (:-:). You can skip this line completely, but do make sure you add a pipe character | between elements to designate a border. Limitations: - This method is intended for one time use only. The original md-table is not saved so it can't be undone later. If you care about undoing use one of the markdown add-ons. - The code in my add-on for transforming markdown tables is simple so that it doesn't convert all valid markdown tables. So it will fail sometimes. A fix for this is already on my todo list but it will take some time until this add-on is updated. Use the add-on at your own risk. # other relevant add-ons For editing tables there's the add-on extended (table) editor. If you want to replace the PowerFormatPack in 2.1 you might also be interested in these add-ons: - Mini Format Pack - Syntax Highlighting for Code - Add Hyperlink - Auto Markdown - convert Markdown to HTML - Mini Format Pack Supplementary # Versions - 2021-07-10 test version for 2.1.45 - 2020-07-25 better night mode compatibility - 2020-04-27 classes for all defaults, better naming - 2020-04-23 config.schema.json, function gc is more robust - 2019-11-06 option to center table, fix for one line selection - 2019-20-20 interoperability - 2019-10-08 2.1 only, gui option for vertical alignment, set alignment in style, code cleanup - 2019-02-24 Fix for UnicodeEncodeError in Anki 2.0 by khonkhortisan - 2019-01-24 handle leading/trailing pipes and escaped pipes, fix shortcut for 2.0 - 2018-11-19 additional options in table creation dialog - 2018-11-03 initial release # Credits This add-on and parts of this description are a partial fork of the great add-on Power Format Pack (Copyright 2014-2017 Stefan van den Akker) because it won't be ported to 2.1 (as of 2018-11). I extracted the table function into a standalone version for 2.1 and in the latest version made some additions so that you can better customize the table inserted. All the good stuff in this add-on is from Stefan van den Akker. # limitations, known bugs Short selections of text, mostly if the last line doesn't contain real content but just empty fields (like '|| |') usually gives unexpected/wrong results. # bugs, errors, feedback Please do not use reviews for bug reports or support requests. I don't get notified of your reviews, and properly troubleshooting an issue through them is nearly impossible (formatting is limited and I can't reply multiple times). If you find a bug let me know in the official anki support forum, on github.


As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:


If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

All Anki 2.1.x Add-Ons Contact Author


on 1634387950
on 1631315488
Amazing, and easy to use
on 1630414312
awesome !!!!!1
on 1628618234
Thanks for this useful addon
on 1627790651
Como puedo hacer para poner color en los encabezados? - seria genial configurar esos aspectos de la tabla!!!!
on 1627664421
on 1625584443
Very helpful
on 1625519848
Very usefull!
on 1624122971
Wonderful addon! Fast and simple!

A little request: would it be possible to add the option to not use header rows?
on 1622445983
Helpful. Before finding this, I used to paste a table from other applications. I don't have to do that anymore
on 1622337041
on 1622077072
Great!! Save my life! =D
on 1617282833
Must have addon
on 1616922285
Works fine
on 1616895348
on 1615003264
must have! i use for side by side images, also i use to to add columns to the reverse side of cards for organization of complex subjects.
on 1614936947
Very convenient
on 1612713378
Works well!
on 1612353946
I've been trying to get a table into Anki and this add-on works well. No more to say.
on 1612015403
I use them in many, many cards! Extremely useful. My old method was to go to an html table creator website and copypaste the html.
on 1610427780
Well done
on 1609477595
This is a god send 5/5
on 1608632488
Extremely useful, especially in conbination with cloze overlapper. i use it for grammar tables and such
on 1603587369
this add-on is awesome. thanks so much!
on 1603541977
love it! Version 2.1.36
on 1601978044
Simple and easy to use
on 1599296635
So easy to use. Great addon
on 1599259765
Wow, I'm on 2.1.15 for compat reasons with other plugins, and this table concept is just great and very quick. Thank you!

Note1: I've not tried to understand why or correct the issue because of this following workaround, but if you want to use images within your selection, don't do it as they are removed/ignored. So just create your table with the other elements, have your row for the images ready with a line like this | dd|dd |dd | and make your table. Then afterwards, just select the "dd" and fill in the fields with your image. You select the dd rather than deleting it so the image is put at the right place in the html (you can see the invisible tags while viewing your entry in html Ctrl-Shif-X to understand, but avoid editing this because it's easy to mangle things up - if you do, just exit editing and find the card you were editing via the browser to remove the offending bit).

Note2: To create a single row table: I use tables sometimes just to put 2 bits of text side-by-side. If you make a table say

case1 | case2

it will create a table with a header row and an empty body. So you just have to alter that style of table so it doesn't make the text bold.
( "HEAD_STYLING": " style='{0} padding: 2px; border: 2px solid; font-weight:normal;' ",)
Comment from author
about your note1: I think the fundamental problem is that I use some short custom code to transform markdown code. Instead I should probably switch to a proper external markdown library in the long run which would solve all kinds of rare problems, see https://github.com/ijgnd/anki__editor_add_table/issues/9
on 1595699841
Is it possible to add my own css to the class?
Comment from author before post was edited
Thanks for your bug report.

I just uploaded an update (for Anki 2.1 only). Please update your add-ons, restart Anki and try again. Do you still get an error message? If so: Is it the same error message or is it different? Under what circumstances does the error occur, i.e. what text do you have selected? Maybe it's easier to continue this conversation on reddit(I'm u/ijgnord) or on https://github.com/ijgnd/anki__editor_add_table/issues. On reddit and github we can exchange multiple messages in contrast to this review section where I can only update my message which quickly gets confusing.

I also updated the description and added a section "known limitations" which includes this sentence: Short selections of text, mostly if the last line doesn't contain real content but just empty fields (like '|| |') usually gives unexpected/wrong results. At some point in the future I'll look into this ...
on 1595137685
Good add-on!Thank you!
on 1594385321
Muito útil. Sugestão, simples: um botão com pausa.
on 1589344310
Really nice and convenient! But please make a version for Anki 2.1.23, thank you so much and stay safe!

Jk you have it already didn't notice hahahah
on 1588513652
thank you good sir!
on 1587138817
Comment from author
the default shortcut is "Ctrl+0".
on 1585859870
Simple and functional. This is exactly what I was looking for. I wish you could paste tables from word or docs into Anki, but that might be better for another addon.
on 1585406253
1. There is a bug that I write `` in the table ,it not work well:
| Name | Description |
| ------------------------------------------------------------ | ------------- |
| `AND`, `&&` | Logical AND |
| `NOT`, `!` | Negates value |
| `OR`, `||` | Logical OR |
| `XOR` | Logical XOR |
2. It can't turn to original format when I turn codes to table...
Comment from author
1. The add-on handles backticks. It just doesn't ignore vertical bars that are inside backticks. My add-on could be improved to handle those but so far I haven't missed this feature and downvotes don't motivate me to add new features. My add-on doesn't promise this feature and some popular markdown parsers also don't ignore vertical bars inside backticks, see how github.com handles your code on https://github.com/ijgnd/anki__editor_add_table/issues/7

2. I can undo with Ctrl+Z.
on 1584826320
Very helpful.
on 1584390206
Excellent tables
on 1583965865
never again shall i have to type <table><tbody><tr>..........................
on 1580932540
So easy to use and very effective!
Thank you!
on 1579436920
Really useful, thanks
on 1579430586
good work, thanks
on 1578760673
on 1577197422
Good Job
on 1574595274
Great add-on, especially since the last few updates!
Is it possible to change the style of previously created tables without recreating them one by one? My tables used to have centered text, but now I want the text to be left-aligned.
Comment from author
maybe with css which would style all your tables which you add into each styling section of each note type? I would google for "css table left align".
on 1574272677
on 1572435733
I really like the tables but is there an option to align the table in the center ?
Comment from author
I just published an update (only for Anki 2.1) that added an option "center table". Please update your add-ons and test it and let me know if it works for you.

If it does not: Let's continue our conversation on reddit or github where we can properly exchange messages (instead of editing just one message in this review section).
on 1572170807
easy usr
on 1571480817
works great
on 1571381932
on 1570684468
Useful and awesome!
on 1569505064
I really do enjoy it for the same reasons everyone else here does!
Thank you for your effort!

I only have one little thing that's annyoing me and I'm just reposting this here to increase the chances of it being recognized:
on 1568471634
on 1567254000
Thanks for this useful addon
on 1567221670
This is great. A useful addition would be to make the separator configurable. A lot of tabulated data I copy from the web is separated with tabs, so I need to convert them to a pipe before pasting into anki.
Comment from author
Thanks for the kind words. This would be a useful feature. Maybe in a future version. At the moment I use for Search&ReplaceAll in a field in the Add window the add-on https://ankiweb.net/shared/info/1043915942
on 1565710627
This is so useful, thanks a ton!
on 1563852287
on 1563026780
really good
on 1562604547
works fine, thanks a lot
on 1562117512
easy to use
on 1561625312
on 1561469318
nice, simple resource
on 1560801483
Works well when inserting simple/fast tables.
For more fancy ones I use an online website.
on 1560189428
very useful addon. thanks.
just a suggestion for possibly future updates: assuming there's a table of two rows, I wish doing ctrl+0 on a third row -which was not part of that table- would add it to it as a third row. That way, we could easily create our tables cumulatively/row-by-row (instead of having to create them all at once).
Comment from author
your suggested feature would be very useful. maybe relevant: https://ankiweb.net/shared/info/805891399
on 1552720286
I really missed power format pack's table function. This one brings it back, thanks! :)
on 1551610552
Great - but can this please support ankidroid? Only issue is that tables have black text during night mode which makes it impossible to see anything. Otherwise is amazing
Comment from author
thanks for your kind words and pointing me to the night mode problem. I don't use the built-in night mode from 2.1. I will have to look into this. There's a popular add-on named night-mode, https://ankiweb.net/shared/info/1496166067, that works slightly differently. This add-on seems to change the fonts of tables, too.

add-ons in general do not work on mobile (ankidroid, ankimobile).
on 1548097681
Great job!
on 1547543978
Good! Thank you
on 1541387156
Testing but looks great! thanks