--- interface Props { code: string; language?: string; class?: string; } const { code, language = 'bash', class: className = '' } = Astro.props; // Simple syntax highlighting classes const languageColors: Record = { bash: 'text-[var(--primary)]', javascript: 'text-[#f7df1e]', typescript: 'text-[#3178c6]', python: 'text-[#3776ab]', rust: 'text-[#dea584]', go: 'text-[#00add8]', html: 'text-[#e34c26]', css: 'text-[#264de4]', json: 'text-[var(--secondary)]', }; const langColor = languageColors[language] || 'text-[var(--text)]'; ---
{language}
{code}