Skip to content

SamMed05/anki_code_wrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Wrapper for Anki

Code Wrapper is a simple Anki add-on that adds a toolbar button and keyboard shortcut (Ctrl+Alt+C) to the card editor. It wraps the selected text in <code> tags and replaces newlines with <br>, making it easier to add formatted code to flashcards.

Code is licensed under the MIT License.

Features

  • Adds a <> button to the editor toolbar;
  • Use Ctrl+Alt+C as a shortcut for quick formatting;
  • Automatically escapes special characters and preserves whitespace and line breaks.

Installation

You can install the add-on from AnkiWeb (search for "Code Wrapper") or manually by placing it in your addons21 folder (located in %APPDATA%\Anki2\addons21 on Windows, ~/Library/Application Support/Anki2/addons21 on macOS, or ~/.local/share/Anki2/addons21 on Linux).

Support

If you have issues or suggestions, feel free to open an issue or pull request.

About

A very simple Anki add-on that adds a toolbar button and keyboard shortcut (Ctrl+Alt+C) to wrap selected text in `code` tags.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages