v1219






โœ๏ธ Edit Mode - Click text to edit
๐Ÿ–ผ๏ธ Image Mode - Click images to edit
๐Ÿ“ In-Line Text Editor - Click text to edit with AI

Welcome to CodeTweaker!

This is an HTML/CSS/JS editor designed for teaching and learning web development. Here's how to use it:

Basic Features:

  • Code Editor: Write or paste HTML, CSS, and JavaScript in the left panel
  • Preview: Click the Play button (โ–ถ๏ธ) in the center divider to see your code in action
  • Helper: Click the Question button (?) to return to this help screen
  • Format Code: Click the Format button (โœจ) to auto-beautify and indent your code
  • Syntax Highlighting: Code is color-coded for easier reading (HTML tags, CSS properties, JS keywords)

Visual Editing:

  • Image Mode: Click the Paintbrush button (๐Ÿ–Œ๏ธ) to enter image editing mode
  • Edit Images: In image mode, click on any image to open the image editor
  • Swap Images: Change image sources, edit alt text, add links, and adjust dimensions
  • Text Mode: Click the Pencil button (โœ๏ธ) to enter text editing mode
  • Edit Text: In text mode, click on any text to open the rich text editor
  • Format Text: Modify fonts, colors, sizes, alignment, links, and more

File Operations:

  • TweakIt: Opens template gallery to use pre-built examples
  • Save: Download your current code as an HTML file
  • Load: Upload an HTML file to edit

Search and Navigation:

  • Find & Count: Search for text in your code and count occurrences
  • Replace: Find and replace text throughout your code
  • Navigation Buttons: Jump to specific sections using the Header, Body, Footer, etc. buttons
  • TARGET Navigation (T1-T12): Quick jump to <!-- TARGET-## --> markers - perfect for frequently-edited spots
  • SECTION Selection (S1-S12): Auto-select entire blocks between <!-- SECTION-## --> and <!-- SECTION-STOP-HIGHLIGHT --> markers - perfect for AI code generation!

๐Ÿค– AI Code Generation (NEW!):

  • Smart Selection: Select code manually or use SECTION buttons to select entire blocks
  • Generate Button: Opens AI generation modal with your selection as reference
  • Quick Prompts: 6 one-click prompts like "New Theme", "Dark Mode", "Animation"
  • Keyboard Shortcut: Press Ctrl+Shift+G to open generation modal instantly
  • 3 Action Options: Replace selection, Insert below, or Copy to clipboard
  • Context-Aware: The system suggests relevant prompts based on your selected code
  • Toast Notifications: Beautiful pop-up confirmations (no more alert popups!)
  • UNDO Support: Every generation saves a snapshot - Ctrl+Z to undo if needed

๐Ÿ“ Code Organization Tips:

  • Use TARGET markers: Add <!-- TARGET-01 --> before elements you edit often (forms, hero sections, etc.)
  • Use SECTION markers: Wrap major sections with <!-- SECTION-## --> and <!-- SECTION-STOP-HIGHLIGHT --> for easy AI generation
  • Combine with AI: Click SECTION button โ†’ Click Generate โ†’ Create variations instantly!
  • See the GUIDE tab: Full documentation with copy/paste examples in CODE TOOLS panel

Responsive Testing:

Use the resize buttons to test your design at different screen sizes:

  • Desktop: (1920px)
  • Laptop: (1280px)
  • Tablet: (1024px)
  • Mobile: (480px)
  • Close: (Minimizes the preview)

Theme Customization:

Select from multiple themes using the dropdown menu next to the CodeTweaker logo.

Tips:

  • Use comments to organize your code into sections
  • The editor will track and display your line count at the bottom right
  • Changes to your code won't appear in the preview until you click the Play button
  • Use the visual editors for easy formatting without writing code
  • Both text and image editing modes work together - you can switch between them
  • Use the Format button to clean up messy code with proper indentation
  • Syntax highlighting makes it easier to spot errors and read your code

Click the Play button (โ–ถ๏ธ) to start editing and previewing your code!

AI Editor - Detected Sections

Choose a detection mode to analyze your code

Your webpage has been analyzed and broken into editable sections. Click any section to view and copy its code.

Choose a detection mode above to analyze your code

๐Ÿ“ฆ Code Snippets

Click any snippet to insert it at your cursor position

๐Ÿ’ก Learning Guide

๐ŸŽฏ TARGET & SECTION Navigation System

Use HTML comment markers to organize and navigate your code!

๐Ÿ“Œ
TARGET Buttons (T1-T12): Quick navigation to specific elements
<!-- TARGET-01 -->

Click T1-T12 buttons โ†’ Jumps to marker โ†’ Selects comment only

๐Ÿ“ฆ
SECTION Buttons (S1-S12): Select entire blocks for AI generation
<!-- SECTION-01 -->
<section>...</section>
<!-- SECTION-STOP-HIGHLIGHT -->

Click S1-S12 buttons โ†’ Selects ENTIRE section โ†’ Perfect for AI Generate!

๐Ÿ“‹ Copy & Paste All Available Markers:

Click inside any code block below to select, then Ctrl+C to copy.

Special Navigation Buttons:
<!-- STYLES-01 -->
<header>...</header>
<!-- SECTION-STOP-HIGHLIGHT -->
<!-- NAVIGATION-01 -->
<nav>...</nav>
<!-- SECTION-STOP-HIGHLIGHT -->
<!-- SCRIPT-01 -->
<main>...</main>
<!-- SECTION-STOP-HIGHLIGHT -->
<!-- FOOTER-01 -->
<footer>...</footer>
<!-- SECTION-STOP-HIGHLIGHT -->
TARGET Buttons (T1-T12) - Quick Navigation:
<!-- TARGET-01 -->
<!-- TARGET-02 -->
<!-- TARGET-03 -->
<!-- TARGET-04 -->
<!-- TARGET-05 -->
<!-- TARGET-06 -->
<!-- TARGET-07 -->
<!-- TARGET-08 -->
<!-- TARGET-09 -->
<!-- TARGET-10 -->
<!-- TARGET-11 -->
<!-- TARGET-12 -->
SECTION Buttons (S1-S12) - Full Block Selection:
<!-- SECTION-01 -->
<section>...</section>
<!-- SECTION-STOP-HIGHLIGHT -->
<!-- SECTION-02 -->
<section>...</section>
<!-- SECTION-STOP-HIGHLIGHT -->
... (SECTION-03 through SECTION-11) ...
<!-- SECTION-12 -->
<section>...</section>
<!-- SECTION-STOP-HIGHLIGHT -->
โœจ Complete Example with Navigation:
<!-- NAVIGATION-01 -->
<nav class="nav-header">
<div class="container flex">
<div class="nav-logo">My Site</div>
<div class="nav-menu">
<a href="#home">Home</a>
<a href="#about">About</a>
<a href="#contact">Contact</a>
</div>
</div>
</nav>
<!-- SECTION-STOP-HIGHLIGHT -->
๐Ÿค– Perfect for AI Code Generation:
  1. Click S1 button โ†’ Entire section selected
  2. Click Generate button โ†’ Modal opens
  3. Click "๐ŸŽจ New Theme" quick button
  4. Click "Generate Code" โ†’ AI creates variant
  5. Click "Insert Below" โ†’ New section added!
๐Ÿ’ก Pro Tips:

โœ… TARGET: Navigation to specific spots you edit often

โœ… SECTION: Selecting whole blocks for AI generation

โœ… Use Header, Navigation, Body, Footer buttons for main sections

โœ… Add markers before the element you want to select

โœ… Always include SECTION-STOP-HIGHLIGHT after SECTION blocks

๐Ÿค– AI Code Generation (NEW!)

Generate code variations with AI assistance!

โšก
Quick Access: Keyboard shortcut Ctrl+Shift+G

Select code โ†’ Press Ctrl+Shift+G โ†’ Generation modal opens instantly!

๐Ÿ“‹
6 Quick Prompts: Click to auto-fill your request

๐ŸŽจ New Theme โ€ข ๐Ÿ“ฑ Mobile Breakpoint โ€ข ๐ŸŒ™ Dark Mode
โœจ Animation โ€ข ๐Ÿ”„ Duplicate & Modify โ€ข โ™ฟ Accessibility

๐ŸŽฏ 3 Ways to Use Generated Code:

1๏ธโƒฃ Replace Selection - Overwrites your selected code

2๏ธโƒฃ Insert Below - Adds new code after selection

3๏ธโƒฃ Copy to Clipboard - Manual paste wherever you want

โœจ Context-Aware Suggestions:

The system analyzes your code and suggests relevant prompts automatically!

Quick Tips

๐ŸŽจ Tip: Use the Format button to clean up messy code automatically
๐Ÿ” Tip: Press Ctrl+F to search, Ctrl+H to find and replace
โ†ฉ๏ธ Tip: Press Ctrl+Z to undo, Ctrl+Y to redo (Global UNDO system!)

Common Mistakes

Unclosed Tags: Every <div> needs a </div>

Missing Alt Text: Always add alt="" to images for accessibility

Inline Styles: Try using CSS classes instead of style="" attributes

Next Steps

1. Add TARGET/SECTION markers to organize your code

2. Try AI Code Generation with the Generate button

3. Use keyboard shortcuts for faster workflow

4. Experiment! UNDO (Ctrl+Z) has your back

AI Code Generator

(No code selected - will insert at cursor position)

Text Editor

Text Content

Live Preview

Your text will appear here...

Typography

px

Formatting

Alignment

Colors

No Background

Advanced

Image Editor

Image Source

Content & Accessibility

Dimensions & Layout

ร— px

Visual Styling

px
px

Advanced

Processing...
1/1

AI Provider Settings

Choose your preferred AI provider and configure your API key.

Select AI Provider:

OpenAI API Key Setup:

  1. Go to OpenAI API Keys
  2. Sign up or log in to your account
  3. Click "Create new secret key"
  4. Copy the key (starts with sk-proj-...)
  5. Paste it below and click Save

๐Ÿ’ฐ Cost: ~$0.001 per section edit (very affordable!)

๐Ÿ”’ Privacy: Your key is stored only in your browser (localStorage)

Edit Section with AI

Current Section Code:


      

Instructions for AI:

AI Edit Preview - Review Changes

Before (Original)


        
Preview (Original)

After (AI Edited)


        
Preview (AI Edited)

Generated Code Ready

Original Selection


        

Generated Code


        
>

๐ŸŒŸ HerStory AI Generation System

Complete HerStory Generation: Fill out this comprehensive questionnaire to generate a professional, publication-ready HerStory biographical page. The AI will use our official template, developer instructions, and optionally perform deep research to create a detailed, accurate, and beautifully designed webpage.

Basic Information

Direct image URL (JPG, PNG)

Full Narrative / Biography

๐Ÿ’ก Tip: Paste questionnaire responses, interview transcripts, or write freely. Include dates, names, organizations, and specific details.

Education & Career

Degree, Institution, Year (comma separated)
Format: YEAR: Description (one per line) - Will be used to build timeline

Leadership & Recognition

Achievements & Impact

Legacy & Philosophy

Additional Context & Sources

Include URLs, references, news articles, or any additional context that will help the AI research and verify information.

AI Generation Options

AI will perform comprehensive research using provided URLs and context. Takes longer (2-4 min) but produces more detailed, verified content. Add references and sources section to the generated page.
Note: Generation typically takes 30s-4min depending on options. Cost: ~$0.02-0.10 per page. Requires Anthropic Claude API key (set in Settings).
๐ŸŒŸ

Generating Your HerStory Page

Connecting to Claude AI...

0%

View Request Data

Generation Timeline

๐Ÿ’ก Did you know? Claude can understand context from thousands of words!