25 4
Contact Author Sign in to rate

Multi-Line Type Answer Box

0.07MB. Updated 2020-08-21.


**I no longer have time to support this addon with fixes and updates. Please feel free to fork the GitHub repo and/or upload your own version. Thanks!** Allows embedding of an input text box (<textarea>) in your notes. The guess can be automatically compared to the answer, just like the built-in {{type:}} template feature. Note: For the best retention, you should keep the answers to your notes as short and specific as possible. This is discussed in many spaced repetition guides you can find online. Don't let this addon make you forget that! After installing, try it by adding a new note type (maybe cloned from "Basic (type in the answer)"), and editing the cards to: Front template: {{Front}} [[typebox:Back]] Back template: {{FrontSide}} The style of the text box can be set in the card styling like this: textarea { height: 300px; } After entering your guess in the text box, you can press CTRL+ENTER while the box is selected to show the answer. To not do any correction on your guess, instead include the box as: [[typebox:]] You can include the input box in cloze cards as well by including [[typebox:]] on both the front and back of the card. The elements can be styled with the CSS selectors '.textbox-input' (<textarea>), '.textbox-output-parent' (<div>), and '.textbox-output' (<pre>). Please create issues for bugs or feature requests here. For bugs, first try clicking "Check for Updates" in the Add-ons menu and see if the issue persists.


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 1656179044
great feature
on 1651263761
Often gives some sort of error if there's a `\` in the answer, e.g. for LaTeX commands and Regex. I can dismiss this with seemingly no effect besides the answer not being shown, but it's rather annoying. Also, doesn't compare HTML character codes correctly: if I have a card with the answer `&copy;`, and I review it and type `&copy;`, it will say that my answer is wrong and say that the answer is `©`, which is really strange. Also `\n` get interpreted as newline similarly, and it's center-justified. Also, doesn't support tabs. Maybe that's what the escape codes are for????????????????

This is the only thing that does this sort of thing unfortunately :(.
on 1648525143
Fantastic plugin. Excellent for programming.
on 1643977959
Request a feature
Is it possible to make it work with cloze cards

Using {{type:cloze:Text}} will give a single input box would it be possible to make this a text area (multi line cloze type card)
Thank you

04 Feb 2022:
I found a new add-on https://ankiweb.net/shared/info/1933645497

Fill the blanks - Multiple type:cloze support
on 1643843375
Amazing, best card I have
on 1636782864
Can't use on Android Device
on 1636750773
Adds some sorely needed functionality. However, it does not work with LaTeX which is a bummer.
on 1634826457
This is brilliant. Thank you so much! Anki 2.1.48 on macOS 11.6.

I’m learning Python at the moment, and it’s so great to be able to ask myself the various functions. Previously I’d asked myself the line number of a given function…

To insert a tab in the textbox, I use Keyboard Maestro (no affiliation): I assign the standard hotkey ⌃⌥Tab to the action Insert text by pasting: %Tab%.

As suggest above, one can easily style the type-in textbox – adding e.g. "padding:10px; border:1px solid silver".

I intensely hope this addon will continue to work. It would be a really, really great service to the community if you (or someone else) could keep it up to date.
on 1632606207
This is super useful for not only typing in simple one-line answers, it also works perfectly for code!!!
I have to get the creator a coffee for this ;)
on 1629925781
Es bueno, funciona realmente.



on 1629594350
Does what it says, even in 2.1.44 even though not supported.
on 1626900457
just what i was looking for 👨‍💻
on 1617991203
Fantastic author, really like this add-on

The only issue I have is seeing all the code I've written at once... how can I make the textbox larger? changing the height in styling to more pixels doesn't seem to change it at all...
on 1611080549
When I put it in a table it returns an error



Why ?????
on 1610399622
Increible complemento me ayuda mucho para estudiar Python, C y Tecnologías Frontend
on 1603415883
Great for C++ cards!
on 1598791447
Good stuff. Thanks a lot! Another happy customer here. Cheers.
on 1598213186
Can you please make this night-mode friendly? The whites background and other colors really hurt my eyes. Will upvote once this is fixed. Thank you!
on 1598203701
this is so cool. thanks
on 1597942664
on 1596354708
thank you, this is exactly what I was looking for.
on 1593605056

BUT it can't work in LaTeX code. Please FIXED it.
on 1590721905
Excellent, just what I need for multi-line type in answers for learning R programming.
on 1590709286
Great work!
on 1589119573
Thanks for updating the add-on! Type comparison is working well now.
on 1589043354
My favorite add-on! Thank you so so much. This add-on has been a tremendous help on my Anki learning journey. I use it everyday it's amazing
on 1588180214
Hi, it works on version 2.1.22.
But I removed it since I had found this plug-in affects the existing cards using {{type:}}.

Could you make it possible to both syntax consistent? Or eliminate the effect on the original cards, at least.
Comment from author
Hmm, the only way {{type:}} should be affected is if you have both {{type:}} and the multi-line input ([[typebox:]]) in the same card, which seems a bit unusual to me. Please make an issue on the github repo linked in the description with more details.
on 1587648190
This is so great. I like that the text of your answer still displays when you flip even if you aren't comparing to the back of the card. Is there a way to style the format of text not only of what you type into the text box but also how it displays on the back of the card after you flip? It's defaulted to arial in white and I'd like it to match the font of all the other text in my card...
on 1587443119
Works great. However, I style it so that my textbox is centered. But the backside of the card displays everything on left alignment. How do I fix that?