Skip to content
Advertisement

How to change this message to an code block message?

I want to change this part into a code block message

JavaScript

I tried but it’s not working

Here’s the full code

JavaScript

Advertisement

Answer

Since codeblocks have to be made with tripple `, you can just add them to the beginning and end like you normally do but escape them with a backslash so your normal string template doesnt end early:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement