76

Sometimes I send pieces of code using Skype. Very often the text is messed up with smileys, and some brackets show up doubled.

Can I somehow send text that will not be transformed? Something like <pre> in HTML.

EDIT ( 19 march 2015 ): In Win 8.1 Skype version 7.2.59.103 (for desktop) both nesono's answer and Nishanth C's answer are working.

Bakudan
  • 1,323
  • 3
  • 14
  • 27
  • 1
    You could disable smileys and suggest your recipient do the same. It's not as nice as what you're asking for though. – Kyle Smith May 18 '11 at 14:48
  • 1
    For reference, [here](https://support.skype.com/en/faq/FA3271/how-do-i-send-an-instant-message-in-skype-for-windows-desktop?q=chat+formatting#) is the official list of Skype formatting escapes, under **Formatting your instant messages**. – István Zachar Jul 15 '16 at 18:03
  • 1
    {code}print(":)");{code} – Jens Frandsen Jun 22 '17 at 01:25
  • note, the opening {code} has to be at the beginning of a line – Jens Frandsen Jun 22 '17 at 01:28
  • @IstvánZachar Skype formatting seems to have changed radically in the new Skype included as part of Windows 10 (I'm on Skype 12.7.597.0). I have asked a new question at [Do not insert emoticons into sent messages in Skype version 12](https://superuser.com/questions/1265799/do-not-insert-emoticons-into-sent-messages-in-skype-version-12) – Silverfish Nov 06 '17 at 16:29

4 Answers4

74

New skype has a feature to add code. Try this

{code}
call_function(0);
:)
(smoke)
{code}
Nishanth C
  • 741
  • 5
  • 2
72

In fact you can keep Skype from parsing the snippet for smileys. Just use two exclamation marks as the first line (rest empty) and paste your snippet afterwards.

Example:

!! call_function(0); :) (smoke)

Apart from that, you can use decorations to post *bold*, _italic_ or ~strikethrough~ text.

nesono
  • 866
  • 7
  • 4
32

Markdown-like syntax also works. For example:

``` 
var s = "Block highlighting"; 
alert(s); 
```
Dmitry Grigoryev
  • 9,151
  • 4
  • 43
  • 77
Dmitry Rogov
  • 421
  • 4
  • 2
3

To get around this kind of problem in other chat systems, people often post the code fragment on a web-based snippet site like pastebin.com and then just send a link to the code via chat.

rakslice
  • 2,608
  • 2
  • 21
  • 27
  • 7
    I know, like pastie.org, jsfiddle.net, codetidy.com, tinypaste.com, codepad.org, pastesite.com. This is not the point of the question. – Bakudan May 10 '11 at 05:04
  • 1
    Sorry, based on question "Can I somehow send text that will not be transformed?" I thought you were looking for a workaround. – rakslice Feb 27 '16 at 00:24