Closed XPhyro closed 3 years ago
Merged although I have to admit that I am not a fan of the following statement below.
I would prefer if we could change this:
*.ino) batorcat --language=cpp "$1"
to this, but bat does not seem to offer such a feature that I am aware of which makes the preview script more cluttered than it needs to be in my opinion.
*) batorcat --language=auto "$1"
I agree. Though it looks like bat
determines the language based on the file extension, and it does not know that an Arduino file is just C or C++. I'll see if I can find a workaround.
The following changes are included in this pull request: