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

feature suggest, extending org-based Anki import of code snippets #88

Open
nbehrnd opened this issue Sep 14, 2022 · 0 comments
Open

feature suggest, extending org-based Anki import of code snippets #88

nbehrnd opened this issue Sep 14, 2022 · 0 comments

Comments

@nbehrnd
Copy link

nbehrnd commented Sep 14, 2022

Given the ease to prepare, manage, and execute snippets of code from within .org (e.g., at 11:00 minutes into the video by John Kitchin video) and your application to import lists into Anki, I ponder if an extension of your application could be achieved (within reasonable effort invested) to create cards about programming languages.

To illustrate the concept, I imagine writing an .org file like

* iteration in Python

** for-loop 

   #+begin_src python
for i in range(5):
    print(i)
   #+end_src

** while loop

   #+begin_src python
i = 0
while (i < 5):
    print(i)
    i += 1
   #+end_src

as input; the output (eventually the Anki card) to recognize that the answer is about a programming language, to recognize that it is Python and to toggle-on syntax highlighting e.g., by glutaminate's dedicated plugin covering many languages.

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

1 participant