fix bug: code is not highlighted
fix unit test error
change regular expression to work in both linux and windows