HTML, CSS, JS만으로 30개 이상의 언어를 지원하는 웹 기반 코드 스니펫 관리 도구를 구축합니다.
Build a developer-focused code snippet manager using HTML5, CSS3, and JavaScript. Create a clean IDE-like interface with syntax highlighting for 30+ programming languages. Implement a tagging and categorization system for organizing snippets. Add a powerful search function with support for regex and filtering by language/tags. Include code editing with line numbers, indentation guides, and bracket matching. Support public/private visibility settings for each snippet. Implement export/import functionality in JSON and Gist formats. Add keyboard shortcuts for common operations. Create a responsive design that works well on all devices. Include automatic saving with version history. Add copy-to-clipboard functionality with syntax formatting preservation.
HTML5, CSS3, JavaScript를 사용하여 개발자 중심의 코드 스니펫 관리자를 제작하세요. 30개 이상의 프로그래밍 언어에 대한 구문 강조(Syntax Highlighting) 기능이 포함된 깔끔한 IDE 스타일의 인터페이스를 만드세요. 스니펫 정리를 위한 태그 및 카테고리화 시스템을 구현하세요. 정규식 지원 및 언어/태그별 필터링 기능이 포함된 강력한 검색 기능을 추가하세요. 줄 번호, 들여쓰기 가이드, 괄호 짝 맞춤이 지원되는 코드 편집 기능을 포함하세요. 각 스니펫에 대한 공개/비공개 설정 기능을 지원하세요. JSON 및 Gist 형식의 내보내기/가져오기 기능을 구현하세요. 자주 사용하는 작업을 위한 단축키를 추가하세요. 모든 기기에서 잘 작동하는 반응형 디자인을 만드세요. 버전 기록이 포함된 자동 저장 기능을 포함하세요. 구문 강조 형식을 유지하면서 클립보드에 복사하는 기능을 추가하세요.
출처 · prompts.chat · Code Snippet Manager — 원문은 출처에 게시된 그대로이며, 권리는 원작자에게 있습니다.
Gemini로 실행한 결과입니다. 입력 항목에는 국내 환경의 예시값을 적용했습니다(AI 생성 — 사실 확인 필요).
Build a developer-focused code snippet manager using HTML5, CSS3, and JavaScript. Create a clean IDE-like interface with syntax highlighting for 30+ programming languages. Implement a tagging and categorization system for organizing snippets. Add a powerful search function with support for regex and filtering by language/tags. Include code editing with line numbers, indentation guides, and bracket matching. Support public/private visibility settings for each snippet. Implement export/import functionality in JSON and Gist formats. Add keyboard shortcuts for common operations. Create a responsive design that works well on all devices. Include automatic saving with version history. Add copy-to-clipboard functionality with syntax formatting preservation.
개발자를 위한 핵심 코드 스니펫 관리자 기본 구현 구조(HTML5, CSS3, JS) 예시입니다. Prism.js를 활용하여 구문 강조를 지원하며, 저장, 검색, JSON 내보내기 및 단축키 기능을 포함합니다.
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>Code Snippet Manager</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css">
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { display: flex; height: 100vh; font-family: monospace; background: #1e1e1e; color: #fff; }
#sidebar { width: 260px; background: #252526; padding: 15px; border-right: 1px solid #333; display: flex; flex-direction: column; gap: 10px; }
#editor { flex: 1; display: flex; flex-direction: column; padding: 15px; gap: 10px; }
input, select, textarea { background: #3c3c3c; color: #fff; border: 1px solid #555; padding: 8px; border-radius: 4px; font-family: inherit; }
textarea { flex: 1; resize: none; font-size: 14px; }
.controls { display: flex; gap: 10px; align-items: center; }
button { padding: 8px 12px; background: #0e639c; color: white; border: none; border-radius: 4px; cursor: pointer; }
</style>
</head>
<body>
<div id="sidebar">
<h3>스니펫 보관함</h3>
<input type="text" id="search" placeholder="검색 (정규식 지원)..." oninput="render()">
<select id="langFilter" onchange="render()"><option value="">모든 언어</option><option value="javascript">JavaScript</option><option value="python">Python</option></select>
<div id="list" style="overflow-y:auto; flex:1;"></div>
<button onclick="exportJSON()">JSON 내보내기</button>
</div>
<div id="editor">
<div class="controls">
<input type="text" id="title" placeholder="스니펫 제목" style="flex:1;">
<select id="lang"><option value="javascript">JS</option><option value="python">Python</option></select>
<label><input type="checkbox" id="isPublic"> 공개</label>
<button onclick="save()">저장 (Ctrl+S)</button>
</div>
<textarea id="code" placeholder="코드를 입력하세요..."></textarmopick 개선안
원문을 그대로 넣으면 AI 가 매번 다르게 답하거나 중요한 부분을 빠뜨릴 수 있습니다. 개선안은 원문의 뜻과 언어는 그대로 두고 역할 · 바꿔 넣을 입력 칸 · 결과 형식 · 지킬 조건을 보완해 다시 쓴 버전입니다. 원문과 같은 곳(ChatGPT · Claude 등)에 그대로 붙여 넣어 쓰면 됩니다.
AI 자체 평가 — 개선안을 쓴 AI 가 명확성 · 구체성 · 결과 형식 · 재사용성 기준(100점)으로 직접 매긴 점수 · 결과를 돌려 검증한 값은 아님
AI 역할레슨 01 배우기 ›
원문 · 없음AI 에게 맡길 역할이 정해져 있지 않아 답의 관점 · 수준이 그때그때 달라질 수 있었습니다.
개선 · 역할을 정함Act as a Senior Frontend Developer. Build a developer-focused, single-page code snippet ma
입력 칸레슨 05 배우기 ›
원문 · 없음바꿔 넣을 자리가 표시돼 있지 않아 쓸 때마다 원문을 직접 고쳐야 했습니다.
개선 · 2개[Preferred Library/Framework] · [Storage Mechanism, e.g., LocalStorage/IndexedDB]
작업 순서레슨 07 배우기 ›
원문 · 없음작업 순서가 정해져 있지 않아 AI 가 순서를 스스로 정해야 했습니다.
개선 · 4단계
이 개선안에 쓰인 기법 — 프롬프트 클래스에서 배우기
원문
Build a developer-focused code snippet manager using HTML5, CSS3, and JavaScript. Create a clean IDE-like interface with syntax highlighting for 30+ programming languages. Implement a tagging and categorization system for organizing snippets. Add a powerful search function with support for regex and filtering by language/tags. Include code editing with line numbers, indentation guides, and bracket matching. Support public/private visibility settings for each snippet. Implement export/import functionality in JSON and Gist formats. Add keyboard shortcuts for common operations. Create a responsive design that works well on all devices. Include automatic saving with version history. Add copy-to-clipboard functionality with syntax formatting preservation.
개선안 · 색칠한 [칸]에 내 내용을 넣어 쓰세요
Act as a Senior Frontend Developer. Build a developer-focused, single-page code snippet manager web application using HTML5, CSS3, and JavaScript (or [Preferred Library/Framework]). Key Requirements: 1. UI/UX: Clean IDE-like interface with syntax highlighting (30+ languages), line numbers, indentation guides, bracket matching, and responsive layout. 2. Management & Search: Tagging/categorization system, public/private visibility settings, and advanced search with regex support and language/tag filtering. 3. Data & Storage: Automatic saving with version history using [Storage Mechanism, e.g., LocalStorage/IndexedDB], plus JSON and GitHub Gist import/export. 4. Features & Shortcuts: Keyboard shortcuts for common actions and copy-to-clipboard preserving syntax formatting. Deliverables: - Modular, production-ready code (HTML, CSS, JS). - Clear instructions for integrating syntax highlighting and handling import/export logic.