--- 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 `` 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: `
fruits[0] = "Banana";
`. [S1] - Inline code highlight: `The html element defines an HTML page.`. [S1] - Requires external library for color: `
.. JavaScript code here
` β€” 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
fruits[0] = "Banana"; fruits[1] = "Apple";
``` ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** 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).