Chapter: Type switch

Fixed #11

TODO: There's some problem for comment alignment in code blocks with fullwidth
Chinese characters inside. Maybe we need to check the font settins or
stop translating strings in examples.