| r126 vs r127 | ||
|---|---|---|
| ... | ... | |
| 645 | 645 | {{{분류:분류명}}}을 검색하면 그 분류에 해당하는 문서가 정리되어 있습니다. |
| 646 | 646 | |
| 647 | 647 | 다른 분류로 링크하실 때는, {{{[[:분류:분류명]]}}}을 입력하셔야 합니다. |
| 648 | == 문법 강조 == | |
| 649 | 해당 하는 프로그래밍 언어의 문법을 강조해서 표기합니다. 지원하는 언어는 cpp, csharp, css, go, java, javascript, json, markdown, objectivec, perl, php, python, ruby, sql, typescript, xml가 있습니다. | |
| 650 | {{{{{{#! syntax 언어명 | |
| 651 | 코드 | |
| 652 | }}}}}} 로 호출 할 수 있습니다. | |
| 653 | 예시 : | |
| 654 | {{{#!syntax javascript | |
| 655 | const http = require('http'); | |
| 648 | 656 | |
| 657 | const hostname = '127.0.0.1'; | |
| 658 | const port = 3000; | |
| 659 | ||
| 660 | const server = http.createServer((req, res) => { | |
| 661 | res.statusCode = 200; | |
| 662 | res.setHeader('Content-Type', 'text/plain'); | |
| 663 | res.end('Hello World\n'); | |
| 664 | }); | |
| 665 | ||
| 666 | server.listen(port, hostname, () => { | |
| 667 | console.log(`Server running at http://${hostname}:${port}/`); | |
| 668 | }); | |
| 669 | }}} | |
| 670 | 코드 출처는 [[https://nodejs.org/en/about/|#]] 입니다. | |
| 649 | 671 | [[분류:A위키의 도움말]] |
| 650 | 672 |