Open djs-CS opened 12 months ago
Hey, that's great news. Can you maybe include the individual steps, on how to do that? I'm kind of new into software development.
Maybe you could answer a few questions for people like me:
You can elaborate the steps here and a send a PR for updating Readme.MD linking to this issue. I will merge the PR, seems very useful documentation.
OP doesn't seem to respond, so forgive me for tuning in
@import url("_ocean.css");
pre code { width: 800px; margin: auto; font-family: "Fira Code"; font-size: 14px; line-height: 150%; }
.card ...
btw. instead of adding this to the readme.md I think it should go to the wiki (perhaps with some hints for Anki-Plugins useful for learning to code) but afaik there are no PRs for wiki pages in github.
Currently, the Obsidian to Anki plugin does not provide syntax highlighting in Anki for code blocks copied from Obsidian. I propose updating the documentation to include instructions for new users on how to achieve this.
Obsidian uses highlight.js for syntax highlighting in code blocks in the live-preview editor, and PrismJS for syntax highlighting in the reader view. By default, Obsidian_to_Anki copies the HTML from the code blocks of the live-preview editor. Example:
To get the same syntax highlighting in Anki as in Obsidian's live-preview editor, one only needs to download and link to a highlight.js css file. Example:
This plug-in has been a game changer for me in learning software development. I would love to work on and submit a PR to update the documentation with tips and instructions for new users to learn about and set up this feature for themselves.