bcicen / slackcat

CLI utility to post files and command output to slack
http://slackcat.chat
MIT License
1.22k stars 57 forks source link

[Feature request] snippet language option #29

Closed shawninder closed 8 years ago

shawninder commented 8 years ago

If I'm posting a javascript snippet to slack, it would be nice to be able to --syntax js or something like that to obtain the correct syntax highlighting.

bcicen commented 8 years ago

By default, Slack will auto-detect the snippet syntax based on the filename. Have you tried posting with --filename snippet.js?

shawninder commented 8 years ago

yes, I mean in the cases where auto-detection is wrong (partial files, badly named files, raw strings...)

bcicen commented 8 years ago

Makes sense. Added in #31 and will be included in the next release.