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

Code blocks are centered in study mode #23

Open
vtpros opened this issue Sep 10, 2020 · 3 comments
Open

Code blocks are centered in study mode #23

vtpros opened this issue Sep 10, 2020 · 3 comments

Comments

@vtpros
Copy link

vtpros commented Sep 10, 2020

When I create a code block:

```ruby
some code
```
anki centers it during a study session: https://imgur.com/pkwFdVO
Can it be avoided?
The text on the back of the card:
card.txt

@vtpros
Copy link
Author

vtpros commented Sep 16, 2020

Fixed it by adding additional styling for codehilite class to the card type template:

.card {
 font-family: arial;
 font-size: 20px;
 text-align: center;
 color: black;
 background-color: white;
}
.codehilite {
 text-align: left;
}

@edap
Copy link

edap commented Dec 21, 2021

I think this should be the default, or at least there should be an option in the plugin config page.

{
    "auto": {
        "enabled": true,
        "uiEditFieldCheckbox": true
    },
    "code": {
        "colorScheme": "default",
        "lineNums": true
    },
    "manual": {
        "shortcut": "Ctrl+M",
        "uiToggleFieldMarkdownButton": true
    }
}

@vtpros where can I edit the css file?

@edap
Copy link

edap commented Dec 21, 2021

Nevermind, I have figured it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants