티스토리 뷰

<사진들 클릭시 원본으로 나옵니다>

블로그에 소스코드를 올릴때 너무 지저분하게 보일때가 있습니다.

그래서 예쁘게 올리는 방법을 소개 해 드리려고 합니다.

바로 아래처럼요.




그럼 시작합니당


먼저 https://colorscripter.com/에접속하여 주세요.



그 다음 언어를 선택하고, 



소스를 붙여넣기하고 클립보드에 복사를 해 주세요.



그럼 아래와 같은 HTML소스가 복사됩니다.


<div class="colorscripter-code" style="color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto"><br /></div><div class="colorscripter-code" style="color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto"><br /></div><div class="colorscripter-code" style="color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !imp">11</div><div style="line-height:130%">12</div><div style="line-height:130%">13</div><div style="line-height:130%">14</div><div style="line-height:130%">15</div><div style="line-height:130%">16</div><div style="line-height:130%">17</div><div style="line-height:130%">18</div><div style="line-height:130%">19</div><div style="line-

.....


고럼 요걸 블로그에 글쓸때 HTML 편집기를 선택하고 붙여넣어 주세요.



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>
int main(void){
    while(1){
    int x, y, z;
 
    printf("input x : ");
    scanf_s("%d",&x);
 
    printf("input y : ");
    scanf_s("%d"&y);
 
    printf("input z : ");
    scanf_s("%d"&z);
    printf("\n");
    (x > y) ? (x > z) ? printf("%d",x) : printf("%d", z) : (y > z) ? printf("%d",y) : printf("%d",z);
    printf("\n ------------------------------------------- \n");
    }
    return 0;
}
 
cs


끝! 쉽게 소스를 예쁘게 바꿀 수 있어 유용한 기능인 것 같아요.

'인생팁' 카테고리의 다른 글

개발시 유용한 텍스트 편집 단축키 소개  (0) 2017.12.15
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함