Add support for file extension through argv, created syntax highlight applying standalone function

This commit is contained in:
Andrea committed 2019-10-15 13:16:29 +02:00
1 parent b0a99acf5f
commit 9972058dc0
2 files changed
+29 -10

No files matched your search

+3 -2
View File
@@ -1,6 +1,6 @@
# tte
tte (tiny text editor) is a terminal based text editor written in C from scratch, trying to be very minimalistic and dependency independent (it's not even using **curses**).
tte (tiny text editor) is a terminal based text editor written in C from scratch, trying to be very minimalistic and dependency independent (it's not even using **curses**).
This project was mainly created for educational purposes, so is very commented!
@@ -19,13 +19,14 @@ Download it from [here](https://github.com/GrenderG/tte/releases/latest), then
```
sudo mv tte /usr/local/bin/
sudo chmod +x /usr/local/bin/tte
```
```
## Usage
```
tte [file_name]
tte -h | --help
tte -v | --version
tte -e | --extension .sh bash_script
```
If you are planning to use special characters like (á, é, í, ó, ú, ¡, ¿, ...) you must use `ISO 8859-1` encoding in your terminal. See [this issue](https://github.com/GrenderG/tte/issues/2) for more info.