small changes in syntax highlighting functionality
Add HTML templates

Use template files to surround generated HTML.
Correct markdown syntax highlighting

Fix check for empty results from syntax highlighting