syntax-highlighting icon indicating copy to clipboard operation
syntax-highlighting copied to clipboard

Are there any plans to update it to version 23.10?

Open castellco opened this issue 1 year ago • 8 comments

Checklist

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

  • [x ] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • [ x] I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • [ x] I've checked if anyone else asked this question before by looking through the issue reports.

Your question

Are there any plans to update it to version 23.10? This add on is the best for learning code, but it is incompatible with the latest version of Anki. Please.

castellco avatar Nov 08 '23 17:11 castellco

Hi, yes it's on my list of add-ons to update.

glutanimate avatar Nov 08 '23 17:11 glutanimate

I'm looking forward to it. Thanks!

castellco avatar Nov 08 '23 18:11 castellco

This patch should fix the issue: https://github.com/glutanimate/syntax-highlighting/pull/47

dluschan avatar Dec 04 '23 00:12 dluschan

@glutanimate @dluschan thanks for the incredible tool ankit is. Would you consider to share the burden to maintain this repo with someone that can help? This pull request is kind of ready to go, but hold for weeks (see47).

cav71 avatar Dec 17 '23 17:12 cav71

Looking forward to running this on new version -

Anki 23.12.1 (1a1d4d54) (ao) Python 3.9.15 Qt 6.6.1 PyQt 6.6.1 Platform: Linux-5.15.0-88-generic-x86_64-with-glibc2.35


When loading Syntax Highlighting for Code:
Traceback (most recent call last):
  File "aqt.addons", line 245, in loadAddons
  File "/home/usr.local/share/Anki2/addons21/1463041493/__init__.py", line 15, in <module>
    from . import main
  File "/home/usr/.local/share/Anki2/addons21/1463041493/main.py", line 21, in <module>
    from .consts import *  # import addon_path
  File "/home/usr/.local/share/Anki2/addons21/1463041493/consts.py", line 22, in <module>
    addon_path = os.path.dirname(__file__).decode(sys_encoding)
AttributeError: 'str' object has no attribute 'decode'

Oh this looks like a quick fix, ^ can I help to create a PR if previous one is stale?

Lexora avatar Jan 06 '24 06:01 Lexora

@Lexora I wrote a fork here syntax-highlighting-ng / 566351439: it includes improvements and fixes for the newest Anki version.

cav71 avatar Jan 06 '24 06:01 cav71

Just checking in to see if this will be updated for the newest version of anki? Great add-on here, thanks for your work

DevinCLane avatar Jan 22 '24 17:01 DevinCLane

@Lexora I wrote a fork here syntax-highlighting-ng / 566351439: it includes improvements and fixes for the newest Anki version.

Thanks a lot @cav71

aljab012 avatar Jan 26 '24 12:01 aljab012