2012년 10월 17일 수요일

Formatting Mnemosyne Flash Cards - Indenting Code Snippets

To help me memorize Python syntax and built-in functions for 6.00x Introduction to Computer Science and Programming, I've created some flashcards using Mnemosyne, the open-source flashcard program that uses an adaptive learning algorithm to determine how often to quiz you on certain cards (mnemosyne is available in the Debian repo's).

One problem is that regular text in flashcards cannot be indented. I've made several cards that contain snippets of Python code, but all the code indentation disappears after saving (which is problematic since Python determines nesting through indentation rather than with brackets). Fortunately, Mnemosyne supports HTML tags which can be used for formatting. Although HTML doesn't directly display tabs, enclosing the entire code fragment in the tags <pre></pre> will allow you to use indentation.

댓글 1개:

  1. 제가 사실은 내가이 블로그에 처음에 방문에 저는 매우 도움이 읽고 볼 수있는 정보, 좋은 물건 찾아 블로그를 볼 정말 좋은 오전, 내가 감사 모든 친구들과 내 페이스 북에 공유 갈거야 하고 유지
    http://www.translation.pk/audio-transcription-translation.html

    답글삭제