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

Syntax Highlighting Not Working for Bash

Open AdrianeNS opened this issue 7 months ago • 0 comments

Problem description

I cannot seem to get syntax highlighting to work for Bash. I have tried copying the formatted code from VS Code into Anki using the lightning button and syntax highlighting is not applied. I have also tried formatting code directly in Anki by highlighting the code and clicking on the lightning button and that didn't work either. However, I tried syntax highlighting on some Python code and it worked just fine. So it seems the issue is that Bash code is not being recognized.

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 verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • [x] I've tried to disable other add-ons to see if there are any interactions present
  • [x] 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.

Information about your Anki set-up

Version ⁨24.06.3 (d678e393)⁩

If you are using Anki 2.1

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):

If you are using Anki 2.0

Please open Anki, go to Help → About, find the two lines starting with Version: and Qt, and copy-paste them between the backticks below:

Anki 24.06.3 (d678e393)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.22631

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Syntax Highlighting NG ['566351439', 2024-07-19T05:46, 'None', '']

===IDs of active AnkiWeb add-ons===
566351439

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Mini Format Pack ['295889520', 2023-11-02T14:00, 'None', '']
Button Colours Good Again ['2494384865', 2022-09-27T06:18, 'None', '']
Review Heatmap ['1771074083', 2022-06-29T21:43, 'None', '']

Please fill in details about your operating system (Windows/macOS/Linux, which version):

  • OS: Windows 11
  • version: 23H2

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

Screenshot 2024-07-21 111417

Error message (if any)

If you've received an error message, please copy and paste it between the backticks below: N/A

AdrianeNS avatar Jul 21 '24 15:07 AdrianeNS