Giter VIP home page Giter VIP logo

anki-code-highlight's People

Contributors

midrare avatar

Watchers

 avatar

anki-code-highlight's Issues

This addon don't work in Anki that uses Python 3.8

I tried this addon in Anki 2.1.35 and got the following error message:

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.35 (84dcaa86) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2024-02-21 12:35:52

Caught exception:
Traceback (most recent call last):
  File "aqt\browser.py", line 1519, in onTogglePreview
  File "aqt\previewer.py", line 60, in open
  File "aqt\previewer.py", line 121, in _setup_web_view
  File "aqt\webview.py", line 378, in stdHtml
  File "aqt\gui_hooks.py", line 3024, in __call__
  File "C:\Users\Swact\AppData\Roaming\Anki2\addons21\1415523481\main.py", line 159, in _on_webview_will_set_content
    _append_color_scheme_css(web_content)
  File "C:\Users\Swact\AppData\Roaming\Anki2\addons21\1415523481\main.py", line 45, in _append_color_scheme_css
    config = DEFAULT_CONFIG | (aqt.mw.addonManager.getConfig(__name__) or {})
TypeError: unsupported operand type(s) for |: 'dict' and 'dict'

So you need to fix the description of the addon on AnkiWeb: write 2.1.49+ (?) (I don't know exactly when Anki starts to use Python 3.9) instead of 2.1.1+.

Mobile support?

I primarily use Anki on mobile, but I can't get the syntax to change for some reason. Specifically, I'm targeting the base16/ros-pine theme. On desktop it works, but I had to go through every card for the highlighting to change (something with Anki's cache?), but on mobile I just don't get anything. Before I spend a ton of time debugging it myself, can you confirm this supports mobile (iOS in my case)? Many thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.