How to Write Funny Script Discord

Download Article

Download Article

Do you want to share a code snippet in a Discord chat? There's an easy way to format any type of code, including blocks of HTML and markdown, to make it look like code rather than plain text. This wikiHow article will teach you how to use special characters in Discord to create a code line or code box on your computer, Android, iPhone, or iPad.

  1. 1

    Open Discord. 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.
  2. 2

    Select a channel. Click the channel to which you want to send your text in the upper-left side of the page.

    Advertisement

  3. 3

    Click the message text box. This is at the bottom of the Discord window.

  4. 4

    Press the back-tick key. 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.
  5. 5

    Enter the text you want to format. Type in the word or phrase you want to format as a line of code.

  6. 6

    Press the back-tick key again. 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.
  7. 7

    Press Enter . Doing so will format and send your message.

  8. 8

    Format a block of code. 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 .[1]

    • 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.
  9. Advertisement

  1. 1

    Open Discord. Tap the Discord app icon, which resembles a white Discord logo on a purple background. Doing so will open the Discord chat page if you're logged into your account.

  2. 2

    Select a channel. Tap the channel to which you want to send your text.

  3. 3

    Tap the chat text box. It's at the bottom of the screen.

  4. 4

    Type a back-tick. A back-tick can be typed in a couple of different ways depending on your phone:

    • iPhone — Tap 123 in the bottom-left corner of the keyboard, tap and hold the apostrophe icon above the return button, drag your finger left to select the far-left back-tick icon (`), and release your finger.
    • Android — Tap !#1 in the lower-left side of the keyboard, then tap the ` back-tick icon.
    • If you want to format a block of code instead, skip this step and the next three steps.
  5. 5

    Enter your text. Type in the text you want to format.

  6. 6

    Type another back-tick. You should now have one back-tick on either side of your text.

    • For example, if you want to format the phrase "Hello there!", you would have `Hello there!` typed into the chat box.
  7. 7

    Tap the "Send" icon . It's to the right of the text box.

  8. 8

    Format a block of code. 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 tap the "Send" icon.

    • For example, to format the code "<!DOCTYPE html>" as a block, you would type ```<!DOCTYPE html>``` into Discord.
    • If you want to set a specific language for your code block, type the three apostrophes, type in the code 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.
  9. Advertisement

Add New Question

  • Question

    My message shows as a code block in Discord, but how do I add a straight colored line beside the block?

    Community Answer

    Unfortunately you can't color single-line code blocks in Discord. Using a block code should work, however.

  • Question

    When I use text highlighting, can I add code using the things?

    Community Answer

    That isn't possible unless you use two code boxes with two color codes.

  • Question

    How do I color text on discord?

    Community Answer

    You can format Discord code blocks to show colored text, you can do ```diff -(text here) ``` to make text red.

  • Question

    Is there a way to send embed messages?

    Bruce

    Right now, only Discord bots can send embeds. It isn't possible for users to send embeds.

  • Question

    I put a full code for a webpage (HTML) and some stuff is blue, some is yellow while some is red. Why does that happen? Is it pointing out mistakes and such?

    Community Answer

    This is syntax highlighting. The different colors symbolise different parts of the syntax such as tags, data types, attributes etc. Examples can be found on the highlight.js demo site.

  • Question

    Can you actually code anything with this feature? Or is it just to share the lines of code with people?

    DarkWolf2244

    DarkWolf2244

    Community Answer

    The feature is primarily for syntax highlighting. Discord is a chat application, not a code editor or IDE. So it's just to share pretty code with others.

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

Video

  • Formatting a block of code can be useful for anything from drawing attention to a piece of text (e.g., a poem) to sending chunks of code while preserving the code's format.

  • Discord accepts several languages which can be activated by typing one of the following codes immediately after three back-ticks when formatting a block of code:[2]

    • markdown
    • ruby
    • php
    • perl
    • python
    • css
    • json
    • javascript
    • java
    • cpp (C++)

Advertisement

  • If you're using a different keyboard than the standard one on Android, you may have to look on different pages for the back-tick button or tap and hold the apostrophe button to find it.

Advertisement

About This Article

Article Summary X

1. Open the chat box in Discord.
2. Type a back-tick (`) on either side of text to create a one-line code box.
3. Type three back-ticks (```) on either side of the text to create a multiple-line code box.

Did this summary help you?

Thanks to all authors for creating a page that has been read 463,283 times.

Is this article up to date?

weldonfection.blogspot.com

Source: https://www.wikihow.com/Format-Text-as-Code-in-Discord

0 Response to "How to Write Funny Script Discord"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel