코드 하이라이트 사이트 추천, 블로그에 코드 넣기, Color Scripter

ET의 정보 /IT정보|2019. 10. 3. 10:56

블로그나 ppt,워드문서에 코드를 넣을 때 하이라이트 기능으로 삽입이 가능하게 만들어 주는 사이트를 소개해 드리려고 합니다.

 

https://colorscripter.com/info

 

정보 - Color Scripter

Simple & Flexible Syntax HighLighter

colorscripter.com

 

Color Scripter는 C,C++,Python,Java,HTML 등 거의 모든 언어에 대해 하이라이트 기능을 지원합니다.

 

자동 혹은 원하시는 언어를 선택하여 사용하실수 있으며 저는 C언어로 한번 하이라이트 효과를 줘보도록 하겠습니다.

그냥 업로드를 하게 된다면

 

#include<stdio.h> //malloc

//Struct to form a linked list of int(s)

struct ll {

int data;

struct ll *next;

};

//Define linked list functions

struct ll* insert_back(struct ll *front, int num);

struct ll* insert_front(struct ll *front, int num);

int search(struct ll*front, int val);

void print(struct ll*front);

struct ll* create_node(int num);

 

흑백으로 시인성이 좋지 않고 개발하던 환경에서 코드를 스크린캡쳐하여 사용할 경우에도 ppt나 워드에 삽입시 가독성이 좋지 않습니다. 

Color Scripter로 코드를 복붙(작성)하게 된다면.

 

 

코드 하이라이트 기능으로 훨씬 가독성이 좋은 것을 확인 할수있습니다. 

 

 

 

우측 하단의 공유하기, HTML로복사, 클립보드에 복사로 원하시는 형태로 공유하실수 있습니다.

 

 

#include<stdio.h> //malloc
 
//Struct to form a linked list of int(s)
struct ll {
    int data;
    struct ll *next;
};
 
//Define linked list functions
struct ll* insert_back(struct ll *frontint num);
struct ll* insert_front(struct ll *frontint num);
int search(struct ll*frontint val);
void print(struct ll*front);
 
struct ll* create_node(int num);

 

댓글()