#56 enable syntax detection by first-line patten and fix highlighting not refreshed bug