Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Underlining text posted to slack

Tags:

slack

webhooks

I am trying to see if there is a way to underline a text posted to slack. I am using webhook for posting messages to slack.

like image 798
Punter Vicky Avatar asked May 16 '16 14:05

Punter Vicky


People also ask

Can you highlight text in Slack?

When you're writing a message in Slack, press the Aa button to reveal a formatting panel in both Slack's desktop and mobile apps. Highlight any text you've written then click options like bold, italics, strikethrough or code format to give messages the right emphasis or to make key excerpts stand out.

How do I indent text in Slack?

Blockquotes: To add angle brackets at the start of your message for indents and quotes, type ">" to indent a single lines or ">>>" to indent multiple paragraphs.

How do I quote a post in Slack?

Tap and hold the message you'd like to share. Tap Copy Link to Message. Paste the link in a channel or direct message and tap the paper plane icon to send. The copied link will expand to display the message you're quoting.

What does GREY text in Slack mean?

Slack. @SlackHQ. @MattRosoff. Oh, apologies for the confusion. The faded, greyed out text in the message input field should tell you the conversation you're viewing, before you start typing.


2 Answers

I don't think this can be done. See https://api.slack.com/docs/formatting for the available message formatting options.

like image 89
user94559 Avatar answered Dec 16 '22 01:12

user94559


You can approximate it with Unicode’s COMBINING LOW LINE character: http://www.fileformat.info/info/unicode/char/0332/index.htm . Before posting, split your string along grapheme boundaries and insert a COMBINING LOW LINE after each. This sort of works, but with Slack’s default font the underline sometimes splits visually between characters. It’s enough though to give an impression, which might be what you want if, for example, you’re trying to give an example of the position of a link within a piece of text.

like image 43
Robin Whittleton Avatar answered Dec 16 '22 00:12

Robin Whittleton