소스 검색

Added image, updated bunch of stuff...

master
부모
커밋
c93a9f6e68
3개의 변경된 파일29개의 추가작업 그리고 2개의 파일을 삭제
  1. +28
    -1
      README.md
  2. BIN
      c_hello.png
  3. +1
    -1
      xighlight.c

+ 28
- 1
README.md 파일 보기

@@ -1,3 +1,30 @@
# xighlight

Xighlight C source code...
xighlight -- Program for highlighting C source code in terminal.

- Quickly written program to test out xtandard and xyntax, doesn't handle files, instead it records from standard input...
- For now, 'xighlight' only works on ANSI C source code, without 'typedef' keyword, both will change in the future, and CLA will be added...
- Everything related to my libraries is clean of all warning options on Clang, GCC and Valgrind.

Compiling:

```bash
$ sh compile.sh
```

Installing:

```bash
$ sudo sh install.sh
```

Using:

```bash
$ cat my_c_program.c | xighlight
$ xighlight < my_c_program.c
```

This is what it prints to standard output, when standard input is C source code:

![alternative text]("c_hello.png");

BIN
c_hello.png 파일 보기

Before After
Width: 387  |  Height: 324  |  Size: 90KB

+ 1
- 1
xighlight.c 파일 보기

@@ -37,10 +37,10 @@ int main (void) {
(void) syntax_define (0, 1, c_keywords [word], separator, '\0', COLOUR_BLUE, EFFECT_BOLD);
}

(void) syntax_define (1, 1, "_", separator, '\0', COLOUR_GREY, EFFECT_BOLD);
(void) syntax_define (1, 1, "0123456789", separator, '\0', COLOUR_CYAN, EFFECT_BOLD);
(void) syntax_define (1, 1, "ABCDEFGHIJKLMNOPQRSTUVWXYZ", separator, '\0', COLOUR_PINK, EFFECT_ITALIC);
(void) syntax_define (1, 1, "abcdefghijklmnopqrstuvwxyz", separator, '\0', COLOUR_WHITE, EFFECT_ITALIC);
(void) syntax_define (0, 1, "_", separator, '\0', COLOUR_PINK, EFFECT_BOLD);

buffer = record ();



불러오는 중...
취소
저장