glutanimate / syntax-highlighting

A fork of Tiago Barroso's Syntax Highlighting add-on with support for Anki 2.1
https://ankiweb.net/shared/info/1463041493
Other
108 stars 27 forks source link

Python code in code blocks is centred instead of left-aligned #13

Closed MatusGasparik closed 4 years ago

MatusGasparik commented 4 years ago

Correct the text-alignment in a code block

How to reproduce the problem

Expected behaviour: In the preview or review mode, the code in the code block is left-aligned respecting the indentation rules of the language.

Actual behaviour: The code in the code blocks is centred in both the preview or the review (but it displays correctly in the browser)

Bildschirmfoto 2019-12-16 um 17 46 57 Bildschirmfoto 2019-12-16 um 17 58 37

Version information

Anki

Version 2.1.15 (442df9d6) Qt 5.12.1 PyQt 5.11.3

System

OS: macOS Mojave (10.14.6)

MatusGasparik commented 4 years ago

OK. I found the proper place to set the left-alignment and it solved the above issue:

On macOS, go to: Tools -> Manage Note Types -> Cards... and within the Styling sub-window, set the text-aling to left.