Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Night mode can't copy/paste code highlights #34

Open
5 of 6 tasks
jacobcassidy opened this issue Jun 2, 2021 · 0 comments
Open
5 of 6 tasks

Night mode can't copy/paste code highlights #34

jacobcassidy opened this issue Jun 2, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@jacobcassidy
Copy link

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...

Adding in light mode

But when using night mode, pasting the same code into an Anki card no longer shows syntax highlighting. Instead, it shows as plain text...

Adding in night mode

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:

added in light mode - display in night mode

added in night mode - display in night mode

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • 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.
  • 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])
    
@jacobcassidy jacobcassidy added the bug Something isn't working label Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant