Skip to content
Discussion options

You must be logged in to vote

You just need a case for text files in your preview script. Case can be for text/*. I would put it as * at the end of case statement to be used as default for all cases not matched above.
So in your case, that should look like this:

If you want to have syntax highlighting, you can use bat or highlight packages instead of cat

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sistematico
Comment options

Answer selected by CatsDeservePets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants