Teach Me!🤔

I can’t type code in forum window, How can I reply or message with my code? :thinking:

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

2 Likes

Can you explain what is/isn’t happening, or what you expect to happen? “code” is just characters, literally the same as you typing there (var x = 7, function foo), so I’m a bit confused as to what the issue is: do you mean highlighted code?

When you enter a code block into a forum post, if you precede it with a separate line of three backticks and follow it with a separate line of three backticks it makes it easier to read. Or you can also use the “preformatted text” tool in the editor ( </> ) to add backticks around the text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

1 Like

thank you for your help. I tried with out them. so I can’t type characters like below.

</>, ",",
<html> 
<a href = "asdf"></a>
</html>

if with out backticks, it’s looks like below.
</>,","

1 Like

Yes. You need to use the backticks for code in the forum.

1 Like