<!DOCTYPE html> <html> <head> <title>CodeMirror</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.3/codemirror.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.3/theme/monokai.min.css"> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.3/codemirror.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.3/mode/javascript/javascript.min.js"></script> </head> <body> <div id="code"></div> <script> CodeMirror(document.querySelector('#code'), { lineNumbers: true, tabSize: 2, matchBrackets: true, value: 'console.log("Hello, World");', mode: 'javascript', theme: 'monokai' }); </script> </body> </html>
xxxxxxxxxx
console.log("Hello, World");
https://playcode.io/javascript
PlayCode - Javascript Playground
playcode.io
https://ansan-survivor.tistory.com/896
[Tistory] ํฐ์คํ ๋ฆฌ ์ฝ๋ ๋ธ๋ก ํ ๋ง ๋ณ๊ฒฝํ๊ธฐ (๋ชป์๊ธด ์ฝ๋๋ธ๋ญ ์์ )
1. ์๋ ๋งํฌ์์ ์ฌ์ฉํ๊ธฐ ์ํ๋ ํ ๋ง ํ์ธํ๊ธฐ https://highlightjs.org/static/demo/ highlight.js demo highlightjs.org 2. ํฐ์คํ ๋ฆฌ htmlํธ์ง๊ธฐ ๋ค์ด๊ฐ๋ค. 3. ์ ์ฌ์ด ์๋ฌด๋๋ ์๋ ์ค์ ์ถ๊ฐํ๋ค. ๊ทธ๋ฆฌ..
ansan-survivor.tistory.com
ํฐ์คํ ๋ฆฌ ์ฝ๋ ํ์ด๋ผ์ดํธ(highlight.js, line number, ํฐํธ ์ ์ฉํ๊ธฐ)
ํฐ์คํ ๋ฆฌ ์๋ํฐ์ ์ฝ๋ ๋ธ๋ญ์ ์ฌ์ฉํ๋ฉด ํ๊ทธ๊ฐ ์๋์ผ๋ก ์ฝ์ ๋ฉ๋๋ค. ๊ทธ๋ฆฌ๊ณ ํฐ์คํ ๋ฆฌ ํ๋ฌ๊ทธ์ธ์ ์ฌ์ฉํ๋ฉด ๊ธฐ๋ณธ์ ์ธ ์ฝ๋ ํ์ด๋ผ์ดํ ๊ธฐ๋ฅ์ด ์ ๊ณต๋ฉ๋๋ค. ํ์ง๋ง ํ ๋ง๊ฐ ๋ช๊ฐ ์๊ณ , ๊ทธ๋ค์ง
mijey.tistory.com
https://toproot.tistory.com/29
[T-Story] ์ฝ๋๋ธ๋ญ ํ ๋ง, ์คํฌ๋กค, ๋ผ์ธ๋๋ฒ ์ถ๊ฐํ๊ธฐ(์ค๋์ธ์ด ํ ๋ง)
๐ง๐ปโ๐ป ํฐ์คํ ๋ฆฌ์ ๋ฐ๋ฐํ ์ฝ๋๋ธ๋ญ์ ๋ฏ์ด๊ณ ์ณ๋ณด์! ๊ธฐ์กด์ ํฐ์คํ ๋ฆฌ ์ฝ๋๋ธ๋ญ์ ํ์์ ๋ฐ๋ฐํ ๋ธ๋ญ์ด์๊ธฐ์.. ํ๋ก ๊ฐ๋ฐ์ ๊ฐ์ ์ฝ๋๋ธ๋ญ์ ๋ง๋ค์ด๋ณด๊ฒ ์ต๋๋ค. ์ฃผ์! ์์ํ๊ธฐ์ ์ ํ
toproot.tistory.com
'โฅ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
๋ถ๋ฒ ์ํํธ์จ์ด ์ฌ์ฉ ์, ์ ์ ์ ์๋ ์ํด (0) | 2023.09.25 |
---|---|
ํฐ์คํ ๋ฆฌ ์ฝ๋๋ธ๋ญ highlight.js ํ ๋ง, line number, ์คํฌ๋กค, ํฐํธ ์ ์ฉํ๊ธฐ (0) | 2022.07.20 |
์๋, ๊ฒฝ๋ ๋ณํ (0) | 2022.05.13 |
DATA ๋ฐ์ดํฐ๋ถ์๊ธฐ์ ํ๊ฐ (0) | 2021.11.05 |
ํ์ดํธ๋ (1) | 2020.08.07 |