1. Home
  2. Windows

How To Send Code On Skype With Proper Formatting

Skype has changed drastically since Microsoft acquired it and not all of the changes were for the better. The app seems to have lost the plot on what made it great. That said, it still retains most of its original features and people do still use it for meetings and interviews alike.  On Skype, when you send code over a text chat, the app treats it like ordinary text and the lines of code are wrapped for better reading. People use apps like Pastebin to share code but you can send code on Skype and have it formatted accordingly.

Send Code On Skype

Skype is a fairly complex app that needs to keep things simple so that everyone can use it. That’s why you won’t see a text formatting bar anywhere even though you can make text bold, or underline it. To apply this sort of formatting, you need to use special characters and the same holds true for when you need to send code on Skype.

To send code on Skype, you have two options; enclose the code within {code} start and end tags, much like you do with HTML elements except the start and end tags are the same. The second option has you precede the code with two exclamation marks i.e., !!.

When you send code this way, Skype does not wrap the lines and it uses a different font for it.

Example 1

{code}

Set fso = CreateObject(“Scripting.FileSystemObject”)
Set wshell = CreateObject(“WScript.Shell”)

logname=”GlobalHotkeys.txt”
Set logfile = fso.CreateTextFile(logname,True)
logfile.Write “Searching for shortcuts with hotkeys” & vbCrLf

{code}

Example 2

!!

Set fso = CreateObject(“Scripting.FileSystemObject”)
Set wshell = CreateObject(“WScript.Shell”)

logname=”GlobalHotkeys.txt”
Set logfile = fso.CreateTextFile(logname,True)
logfile.Write “Searching for shortcuts with hotkeys” & vbCrLf

The above two work on the Skype Windows 10 UWP app. The {code} tag is a bit new so it may not work on all versions of the app. If it doesn’t, you can use the !! character set which is older and more universally implemented.

The code is formatted accordingly on both iOS and Android versions of the Skype app however, because the devices they run on have small screens, the code lines may still be wrapped.

Skype’s interface has changed quite a bit and almost all new features pushed the app towards being more social rather than productive. It used be the go-to app for meetings, conference calls, and even personal chats. The one productivity oriented feature that Skype added was for its web interface that gives you a code editor within a Skype call.

Leave a comment