docs(10_Wiki): Topic_Business/General/Graphic/Programming을 Topics/ 하위로 이동
최상위 10_Wiki/Topic_*였던 4개 카테고리 폴더를 10_Wiki/Topics/Topic_* 로 재배치. 콘텐츠 변경 없음(순수 폴더 이동) — Topics/ 하위 나머지 폴더는 이미 지난 커밋에서 전부 정리된 상태(잔존 항목은 에이전트 운영 상태 및 사용자가 보존을 요청한 업데이트0615/무제 3.canvas 뿐).
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
---
|
||||
id: w3css-code
|
||||
title: "W3CSS Code"
|
||||
category: "Programming_Language"
|
||||
status: "draft"
|
||||
verification_status: "conceptual"
|
||||
canonical_id: ""
|
||||
aliases: ["w3-code", "w3-codespan", "syntax highlighting", "W3.CSS 코드 표시"]
|
||||
duplicate_of: ""
|
||||
source_trust_level: "B"
|
||||
confidence_score: 0.85
|
||||
created_at: 2026-07-04
|
||||
updated_at: 2026-07-04
|
||||
review_reason: ""
|
||||
merge_history: []
|
||||
tags: ["w3css", "css-framework", "w3schools", "code-display"]
|
||||
raw_sources: ["https://www.w3schools.com/w3css/w3css_code.asp"]
|
||||
applied_in: []
|
||||
github_commit: ""
|
||||
---
|
||||
|
||||
# [[W3CSS Code]]
|
||||
|
||||
## 🎯 한 줄 통찰 (One-line insight)
|
||||
Real syntax highlighting (`jsHigh`/`htmlHigh`/`cssHigh` classes) is explicitly NOT part of W3.CSS itself — it only activates if the developer separately downloads and includes W3Schools' own `w3codecolor.js` JavaScript library, meaning `w3-code`/`w3-codespan` alone only provide monospace STYLING, while color-coded syntax requires an entirely separate opt-in dependency. [S1]
|
||||
|
||||
## 🧠 핵심 개념 (Core concepts)
|
||||
- **`w3-code`** — displays a block of code in a readable monospaced font (pure CSS, no highlighting). [S1]
|
||||
- **`w3-codespan`** — highlights inline code (e.g. within a sentence) using the `<code>` element. [S1]
|
||||
- **`jsHigh` / `htmlHigh` / `cssHigh`** — color-highlighting classes that only function if `w3codecolor.js` is separately loaded; otherwise they have no visual effect. [S1]
|
||||
- **Separation of styling vs. behavior** — this chapter reinforces a pattern seen elsewhere in W3.CSS: base classes are pure CSS, but advanced behavior (real syntax coloring) requires an external JS library, not baked into the CSS framework. [S1]
|
||||
|
||||
## 📖 세부 내용 (Details)
|
||||
- Monospaced code block: `<div class="w3-code">fruits[0] = "Banana";</div>`. [S1]
|
||||
- Inline code highlight: `The <code class="w3-codespan">html</code> element defines an HTML page.`. [S1]
|
||||
- Requires external library for color: `<div class="w3-code jsHigh">.. JavaScript code here</div>` — only colors correctly once `w3codecolor.js` (downloadable from `w3schools.com/lib/w3codecolor.js`) is included on the page. [S1]
|
||||
|
||||
## ⚖️ 모순 및 업데이트 (Contradictions & updates)
|
||||
- **w3-code만으로는 색상 강조 불가**: jsHigh/htmlHigh/cssHigh 클래스는 w3codecolor.js 라이브러리를 별도로 로드하지 않으면 아무 효과가 없다는 점이 명시적으로 경고됨. [S1]
|
||||
|
||||
## 🛠️ 적용 사례 (Applied in summary)
|
||||
현재 발견된 실제 적용 사례가 없습니다 — 이 문서 자체의 코드 패턴 섹션이 w3-code 클래스의 실전 활용 예시다. [S1]
|
||||
|
||||
## 💻 코드 패턴 (Code patterns)
|
||||
Monospaced code display without syntax coloring (HTML/CSS):
|
||||
```html
|
||||
<div class="w3-code">
|
||||
fruits[0] = "Banana";
|
||||
fruits[1] = "Apple";
|
||||
</div>
|
||||
```
|
||||
|
||||
## ✅ 검증 상태 및 신뢰도
|
||||
- **상태:** draft
|
||||
- **검증 단계:** conceptual
|
||||
- **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body)
|
||||
- **신뢰 점수:** 0.85
|
||||
- **중복 검사 결과:** 신규 생성 (New discovery)
|
||||
|
||||
## 🔗 지식 그래프 (Knowledge Graph)
|
||||
- **상위/루트:** [[W3.CSS Tutorial]]
|
||||
- **관련 개념:** [[W3CSS Tooltips]], [[W3CSS Filters]]
|
||||
- **참조 맥락:** Code & Miscellaneous 섹션 첫 항목 — 필터(Filters) 챕터로 이어짐.
|
||||
|
||||
## 📚 출처 (Sources)
|
||||
- [S1] W3Schools — W3.CSS Code — https://www.w3schools.com/w3css/w3css_code.asp
|
||||
|
||||
## 📝 변경 이력 (Change history)
|
||||
- 2026-07-04: Initial draft synthesized from the W3Schools "W3.CSS Code" page (Astra wiki-curation, P-Reinforce v3.1 format).
|
||||
Reference in New Issue
Block a user