그냥 블로그에 PRE 태그로 소스코드나 기타 커맨드 들을 적어 왔는데 가독성도 별로 안좋고 하여간 좀 불친절한 모양이었다. 이럴때 이 서비스를 이용해 본다면 제법 좋은 결과물을 얻을 수 있을 것 같다.
아래 코드는 시험삼아 C로 작성해본 유명한 Hello World 소스코드이다. 이 코드를 gist.github.com을 통해 포스팅 하고 embed 코드를 얻어서 직접 삽입해 봤다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(int argc, char *argv[]) { | |
printf("Hello World\n"); | |
return 0; | |
} |
잘 나온다. 제법 쓸 만한 것 같다.
0 comments:
댓글 쓰기