Click or double-click the Discord app icon, which resembles the white Discord logo on a purple background. This will open the Discord chat window if you're logged in. If you aren't logged in, enter your email address and password and click Login. Click the channel to which you want to send your text in the upper-left side of the page. This is at the bottom of the Discord window. It's the ` key typically found in the upper-left side of the keyboard on the same key as the tilde (~). Doing so will type one back-tick into the Discord text box. If you want to format a block of code, skip this step and the next three steps. Type in the word or phrase you want to format as a line of code. You should now have one back-tick on each side of the text you're sending as a code. For example, if you're trying to format the line "I like trains", you would have `I like trains` typed into the text box. Doing so will format and send your message. If you want to send a sample of code (e.g., an HTML page) to someone through Discord, you can type three back-ticks (```) before and after the text and then press ↵ Enter.  For example, to format the code "<!DOCTYPE html>" as a block, you would type ```<!DOCTYPE html>``` into Discord and press ↵ Enter. If you want to set a specific language for your code block, type the three apostrophes, type in the language (e.g., css) on the first line, create a new line, and add the rest of your code before typing the closing three apostrophes.
افتح تطبيق ديسكورد. اختر قناة. انقر على الصندوق النصي للرسالة. اضغط على زر الفاصلة العلوية. أدخل النص الذي ترغب بتنسيقه. اضغط على زر الفاصلة العلوية مجددًا. اضغط على زر الإدخال ↵ Enter في لوحة المفاتيح. تعلم كيفية تنسيق صندوق كود.