gregorias / anki-code-highlighter

Anki plugin for code syntax highlighting.
GNU Affero General Public License v3.0
65 stars 3 forks source link

The plugin seems to apply formatting but not highlighting [only checked note editor]. #88

Closed AdrianeNS closed 3 months ago

AdrianeNS commented 3 months ago

Hello, I just installed this today by adding the number provided on Anki's add-on page. I tried using it to format some Bash code but when I highlighted the code and then pressed on the add-on's button, it didn't fully work. It did format the code but it did not highlight it. I tried again using Python to see if the issue was with Bash but I got the same result. I'm just wondering if I'm missing a step here. Do I also need to install the supported highlighters separately? I'm not sure what else I might be doing wrong.

gregorias commented 3 months ago

Hi @AdrianeNS,

No, the plugin was written to work immediately. Just to be sure, did you check how the card renders (ctrl/cmd + L)? The styles do not apply in the note editor.

gregorias commented 3 months ago

See also https://github.com/gregorias/anki-code-highlighter/issues/71#issuecomment-1815164324 for screenshots of expected behavior.

AdrianeNS commented 3 months ago

Thanks so much for replying so quickly. I did not realize highlighting was not applied in the editor. I checked the cards and look like they're supposed to. Thanks again!