Convert your code snippets into beautifully highlighted HTML markup for static websites, blogs, and documentation. A powerful web tool that supports multiple syntax highlighters and themes.
- 🎨 Multiple Syntax Highlighters: Choose from Highlight.js, Prism.js, or Shiki
- 🌈 Rich Theme Collection: Dozens of beautiful themes for each highlighter
- 🔤 Extensive Language Support: Supports hundreds of programming languages
- 📋 One-Click Copy: Copy generated HTML markup with a single click
- 🔗 Shareable URLs: Share your highlighted code via URL with embedded code
- 💾 Auto-Save: Your preferences are automatically saved in local storage
- 📱 Responsive Design: Works perfectly on desktop and mobile devices
- ⚡ Fast & Lightweight: No server required - runs entirely in your browser
Try it now: https://psd-coder.github.io/code-to-markup/
- Documentation: Create beautiful code examples for your docs
- Blog Posts: Add syntax-highlighted code snippets to your articles
- Static Websites: Enhance your static site with professional code formatting
- Presentations: Generate HTML code blocks for web-based presentations
- Email Templates: Include formatted code in HTML emails
- README Files: Create examples for your GitHub repositories
- 🎨 50+ themes
- 📚 190+ language definitions
- 🎨 8 core themes plus community themes
- 📚 200+ supported languages
- 🎨 60+ themes
- 📚 220+ supported languages
- 🎁 Embeds styles directly in the generated HTML
- Select a Highlighter: Choose from Highlight.js, Prism.js, or Shiki
- Pick a Theme: Browse through dozens of beautiful themes
- Choose Language: Select from hundreds of supported programming languages
- Paste Your Code: Add your code snippet in the text area
- Copy Markup: Get the generated HTML markup with a single click (for Highlight.js and Prism.js you have to add link to styles though)
This project is licensed under the MIT License - see the LICENSE file for details.
- Highlight.js - Syntax highlighting for the web
- Prism.js - Lightweight, extensible syntax highlighter
- Shiki - Beautiful syntax highlighter
- Alpine.js - Lightweight JavaScript framework