Syntax highlighting work as expected in normal (light) mode. For example, copying JavaScript code from VSCode and pasting it into an Anki card...
But when using night mode, pasting the same code into an Anki card no longer shows syntax highlighting. Instead, it shows as plain text...
As soon as I uncheck night mode and restart Anki in normal mode, I can paste the same code to get the expected syntax highlighting again.
Interestingly, code added in normal (light) mode will show syntax highlighting correctly when I switch to night mode. I just can't add new cards with the correct syntax highlighting in night mode. See the following comparisons:
Checklist
Please replace the space inside the brackets with an x if the following items apply:
[x] I've restarted Anki to see if it helps
[x] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
[x] I've tried to disable other add-ons to see if there are any interactions present [NOTE: No other add-ons installed]
[ ] My issue disappears when I hold shift while starting Anki.
[x] I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README. [NOTE: The other night mode issue doesn't appear to be the same issue]
If you are using Anki 2.1
Anki 2.1.44 (b2b3275f) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.15.7
Flags: frz=True ao=False sv=2
Add-ons, last update check: 2021-06-02 11:20:33
===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Syntax Highlighting for Code ['1463041493', 2018-10-07T08:31, 'None', '']
===IDs of active AnkiWeb add-ons===
1463041493
===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Problem description
Syntax highlighting work as expected in normal (light) mode. For example, copying JavaScript code from VSCode and pasting it into an Anki card...
But when using night mode, pasting the same code into an Anki card no longer shows syntax highlighting. Instead, it shows as plain text...
As soon as I uncheck night mode and restart Anki in normal mode, I can paste the same code to get the expected syntax highlighting again.
Interestingly, code added in normal (light) mode will show syntax highlighting correctly when I switch to night mode. I just can't add new cards with the correct syntax highlighting in night mode. See the following comparisons:
Checklist
Please replace the space inside the brackets with an x if the following items apply:
If you are using Anki 2.1