# Anki templates support for Emacs' web-mode

**URL:** <https://forums.ankiweb.net/t/anki-templates-support-for-emacs-web-mode/20793>\
**Category:** Development\
**Created:** [June 15, 2022, 8:57am UTC](https://forums.ankiweb.net/t/anki-templates-support-for-emacs-web-mode/20793 "2022-06-15T08:57:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlackBeans](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/blackbeans/32/2283_2.png) [@BlackBeans](https://forums.ankiweb.net/u/BlackBeans)\
**Post date:** [June 15, 2022, 8:57am UTC](https://forums.ankiweb.net/t/anki-templates-support-for-emacs-web-mode/20793/1 "2022-06-15T08:57:48Z")

</div>

After @kleinerpirat’s [remark on IDE integration](https://forums.ankiweb.net/t/suggestion-add-ondesktop-ondesktop/20544/4), I wondered if it could be possible to integrate Anki’s template language with Emacs’ web mode, as it already supports tons of similar template languages. So I contacted the author of [web-mode](https://github.com/fxbois/web-mode) a few days ago, and he kindly accepted to do that. Now, back to the present, the support is real! So far, you have to edit `.anki` files for it to automatically catch up, but for those who use `org-mode` in conjunction with `anki-mode`, it’s probably possible to setup an org-babel block for the cards.

Anyways, any feedback would be greatly appreciated, here or directly on the [dedicated issue of web-mode](https://github.com/fxbois/web-mode).

Also, I provided the author a short file containing most of the features of Anki’s template language [here](https://github.com/fxbois/web-mode/blob/master/issues/1246.anki). I based it on the documentation of card templates, but maybe some are missing. Feel free to directly contact the author to provide more feature requests!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 3:15am UTC](https://forums.ankiweb.net/t/anki-templates-support-for-emacs-web-mode/20793/2 "2023-05-01T03:15:28Z")

</div>


