13 3
Sign in to rate

Card Layout Editor - syntax highlighting, monospace font

0.01MB. Updated 2018-01-18.
The author has shared 2 other item(s).


GitHub link One drawback to the otherwise powerful Anki template editor is the absence of two common features of text editors:
  1. fixed width (monospace) text
  2. syntax highlighting
A common ad-hoc workaround was to copy & paste between the Anki template editor and a separate text editor. This addon provides these missing features directly in the template editor. Syntax highlighting works for both HTML and CSS, although currently the lexing is naive. Example: Next steps:
  1. configurable highlighting (colors, tokens)
  2. better syntax highlighting
  3. line numbers
  4. search & replace
  5. tabs to spaces
  6. automatic indentation


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

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


on 1619060752
on 1598897765
doesn't start on Anki for Mac 2.1.33
on 1594864442
on 1585404796
Wonderful! This should be built into Anki from the start. 👍👍
on 1575571193
Many thanks. Works great on macOS Mojave.
on 1575057785
on 1573055719
I love the idea but it doesn't work
on 1571736465
Thank you
on 1566125276
on 1552112787
Made template editing easier a bit
on 1548031610
I wish I had this earlier. Perfect if you know how to edit card layouts.
on 1545328152
on 1541418541
nice, works great!! thanks
on 1532336323
I love the idea but it doesn't work
on 1524700800
Very useful for editing CSS...
on 1516060800
Great job!