add automatic code selection

related to #53
Merge pull request #66 from LukeAskew/code-highlight

add automatic code selection