auto detect syntax from extension