2023-08-25 16:54:41 -04:00
|
|
|
# xighlight
|
|
|
|
|
2023-09-12 07:59:52 -04:00
|
|
|
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:
|
|
|
|
|
2023-09-12 08:02:58 -04:00
|
|
|
![screenshot](c_hello.png)
|