Auto-detect code syntax