31 lines
721 B
Markdown
31 lines
721 B
Markdown
# xighlight
|
|
|
|
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:
|
|
|
|
![screenshot](c_hello.png)
|