โ CC Code Image
A modern, browser-based code screenshot generator with beautiful syntax highlighting. Create stunning code snippets for presentations, documentation, or social media.
โ โจ Features
Syntax Highlighting : Beautiful code highlighting with dark and light themes
15+ Languages Supported : JavaScript, TypeScript, Python, Java, C++, C#, PHP, Ruby, Go, Rust, JSON, XML, CSS, HTML, and SQL
Screenshot Export : Copy to clipboard or download as high-quality PNG images
Customizable Scale : Generate screenshots at 1x to 5x resolution for pixel-perfect results
Line Numbers : Optional line number display
Rounded Corners : Toggle rounded corners on your screenshots
Theme Options : Choose between dark (Atom One Dark) and light (Atom One Light) themes
Code Editing : Built-in editor to write or paste your code
Quick Actions : Copy code to clipboard or save as file
Responsive Design : Works seamlessly on desktop and mobile devices
โ ๐ Getting Started
โ Prerequisites
โ Installation
Clone the repository and navigate to the app directory:
Install dependencies:
โ Development
Run the development server:
The app will be available at http://localhost:5173 (or another port if 5173 is in use).
โ ๐๏ธ Building For Production
Build the application for production:
Preview the production build:
โ ๐ Usage
Edit Code : Click "Edit Code" to open the editor and paste or write your code
Select Language : Choose the programming language from the dropdown (15+ languages available)
Customize Appearance :
Switch between dark and light themes
Set screenshot scale (1x to 5x)
Toggle line numbers on/off
Enable/disable rounded corners
Export Options :
Copy Screenshot : Copies the code as an image to your clipboard
Download Screenshot : Downloads the code as a PNG file
Copy Code : Copies the raw code text to clipboard
Save File : Saves the code as a file with the appropriate extension
โ Supported Languages
JavaScript, TypeScript, Python, Java, C++, C#, PHP, Ruby, Go, Rust, JSON, XML, CSS, HTML, SQL
โ Screenshot Features
High Resolution : Choose up to 5x scale for ultra-sharp images
Optimized Output : Automatically sized to fit your code perfectly
Background Colors : Theme-matched backgrounds for professional appearance
Custom Styling : Rounded corners and line numbers for enhanced readability
โ ๐งช Testing
Run the test suite:
This project uses Vitestโ for testing.
โ ๐ ๏ธ Tech Stack
โ ๐ Project Structure
src/
โโโ components/
โ โโโ screenshot-buttons.tsx # Screenshot generation and export
โโโ lib/
โ โโโ languages.ts # Supported language definitions
โโโ routes/
โ โโโ __root.tsx # Root layout component
โ โโโ index.tsx # Main application component
โโโ main.tsx # Application entry point
โโโ styles.css # Global styles
Copy
โ ๐จ Use Cases
Documentation : Create beautiful code examples for technical documentation
Presentations : Generate high-quality code snippets for slides
Social Media : Share code on Twitter, LinkedIn, or blog posts
Tutorials : Enhance educational content with syntax-highlighted code
Code Reviews : Take screenshots of specific code sections for discussion
Portfolio : Showcase your code with professional styling
โ ๐ License
Part of the CC Web Tools collection.