It's easy to format your messages in Watson Workspace so they stand out. To add bold, italics, code, or code blocks, surround your text with special characters. On mobile, use the formatting menus.
Desktop
Android
iOS
Using rich markdown
In the web browser app or desktop app, you can use special characters when you compose your message in the input field to format your text.
Bold
Use *asterisks* on either side of your message. After you send the message, the text in between the asterisks is bold.
Italics
Use _underscores_ on either side of your message. After you send the message, the text in between the underscores is italics.
Code
Use `accent marks` on either side of your message. After you send the message, the text in between the accent marks is shown as monospace.
Tip: If your text contains these special characters and you don't want to apply formatting, you'll need to use the escape character before the special character. For example, \_underscore_ shows the underscore characters and does not add formatting to the text in the message.
Code Block
You can share several lines of code in a block in your space. You can also use it to emphasize a quote.
- Type three accent marks to make a code block that spans several lines.
- Press Shift + Enter to add a line to the message.
- Type or paste the content of your message.
- Press Shift + Enter to add a final line.
- Then, type three accent marks on the final line.
Code syntax highlighting
Our code syntax highlighting that supports 172 programming languages – from Access log and Augmented Backus-Naur Form to YAML and Zephir. For the full list, visit highlightsjs. Here's what you do.
- Add three accent marks to indicate it's a code block, then add the programming language. Here's a JavaScript example:
```javascript
- Press Shift + Enter for a new line.
- Paste your code.
- Press Shift + Enter for a new line.
- Add three accent marks to close your code block.
Let's say you add this CSS code block into the message input field: ```css
@font-face {
font-family: Chunkfive; src: url('Chunkfive.otf');
}
body, .usertext {
color: #F0F0F0; background: #600;
font-family: Chunkfive, sans;
}
@import url(print.css);
@media print {
a[href^=http]::after {
content: attr(href)
}
}
```
Here's what it looks like in the conversation.
Even if you are a non-techie, syntax highlighting can work for you too. You can use it to show your space the difference between text you want to add and text you want to remove.
- Start with three accent marks. Then, type diff after the accent marks.
- Press Shift + Enter for a new line.
- On the second line, type the minus sign (-) followed by the text you want to remove.
- On the next line, type the plus sign (+) and the text you want to add.
- Press Shift + Enter for a new line.
- Add three more accent marks.
This is what you type in the message input field. ```diff
-Old, boring text.
+New, interesting text!
```
And it looks like this in the conversation.
Nice right? It's desktop only for now, but we'll add it to mobile soon.
Links
Add text that explains what your link is to your space members. For example, if you send a message that says [Watson Workspace](https://workspace.ibm.com), the transcript will show Watson Workspace underlined as a link to workspace.ibm.com.
Tip: In our web and desktop apps, we've added some nudges near the input field (when you're typing) to help you remember which special characters to use to achieve the desired formatting.
Using the text formatting menu
On Android, you can use menus to make it easy to apply formatting. There are buttons for bold, italics, code and code block.
- Long press on any message to select the text you want to apply formatting to.
- Tap any of the four formatting options that appear just below text. You can even apply bold and italics to the same text.
Tap the B for Bold formatting
Tap the I for Italics formatting
Tap the < > for Code formatting.
Using rich markdown
You can also use special characters to format your text.
Bold
Surround text with *asterisks* when you compose it in the input field. After you send the message, the text in between the asterisks is bold.
Italics
Surround the text with _underscores_ for italic text.
Code
Surround the text with `accent marks` for code.
Code Block
You can share several lines of code in a block in your space. You can also use "code block" formatting to emphasize a quote.
- Type three accent marks to make a code block that spans several lines.
- Press Shift + Enter to add a line to the message.
- Type or paste the content of your message.
- Press Shift + Enter to add a final line.
- Then, type three accent marks on the final line.
Links
Sometimes you prefer to link a string of text instead of showing a long, ugly url. To do this just type [Watson Workspace](https://workspace.ibm.com) and the transcript will show Watson Workspace underlined as a link to workspace.ibm.com.
Using the text formatting menu
On iOS, you can use menus to make it easy to apply formatting. There are buttons for bold, italics, and code.
- Long press on any message to select the text you want to apply formatting to.
- Tap any of the three formatting options.
Tap Bold for Bold formatting. It will apply asterisks to either side of the string.
After you send the message, the text in between the asterisks is bold.
Tap Italics for Italics formatting. It will apply underscores to either side of the string.
After you send the message, the text in between the underscores is italics.
Tap Code for monospace formatting. It will apply accents to either side of the string.
After you send the message, the text in between the accent marks is monospace.
Tip: If you prefer, you can use the rich markdown directly to format your text instead of the formatting menu.
Links
Sometimes you prefer to link a string of text instead of showing a long, ugly url. To do this just type [Watson Workspace](https://workspace.ibm.com) and the transcript will show Watson Workspace underlined as a link to workspace.ibm.com.