-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add syntax highlighting #14
Comments
And linenumbers corresponding to the actual ones would be amazing |
currently there is no way to beautify input via snippets. The API only allows attachments or pre-text unfortunately. For the line numbers, I'm not sure what you mean, it currently does display the lines selected within the file? |
@b-sharpe I yeah that would be really if there were some kind of Snippet styled with Markdown public function sendToSlack($message)
{
$this->submit($message);
} PhpStorm screenshot: line numbers. |
i might be wrong here, but isn't it possible by setting the file type of a snippet @b-sharpe ? https://api.slack.com/types/file -> scroll down to "file types":
|
@Nguimjeu @qikkeronline Unfortunately inline line numbers and code formatting are not something you can do via a incoming webhook, basically you are bound to what can be done here: https://api.slack.com/docs/messages/builder The file types link is for attaching actual files via https://api.slack.com/methods/files.upload which is using the Web API + OAuth rather than webhooks |
Clear, thanks for explaining @b-sharpe 👍 |
Slack usually let's you set a syntax for snippets, perhaps this is possible with the plugin as well?
Thanks, super useful plugin!
The text was updated successfully, but these errors were encountered: