Useful Source code posting method
by RileyKim
소스코드 예쁘게 만드는 법 feat. github gist
깃블로그에 포스팅하면서 소스 코드를 마크다운으로 작성할 때 불편함이 하나 있었습니다. Object Key값으로 마크다운 문법을 작성하니 제 깃블로그의 모든 객체들이 호출되어 출력되는 일이 발생하였습니다. 또 하나는 소스 코드에 색깔이 없어 너무 밋밋한 느낌이 있었습니다.
이 2가지의 불편함을 해결하기 위해 git gist를 사용하기로 하였습니다.
Github gist : https://gist.github.com/
git gist
github에서 제공하는 gist이며, editor에서 작성한 것 처럼 블로그에서 볼 수 있다는 것이 큰 장점입니다!
또한 git 계정이 있으면 git gist 관리가 용이하기 때문에 깃블로그를 하신다면 추천드립니다 ㅎㅎ
create public gist - embed를 통해 소스 코드를 포스팅할 수 있습니다.
print.txt
This file contains hidden or 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
print("hello world") |
Subscribe via RSS