Author Topic: How do you post a block of code  (Read 295 times)

Offline Jinesh

  • Single posting newcomer
  • *
  • Posts: 1
How do you post a block of code
« on: July 28, 2020, 06:19:35 pm »
Hello everyone,,

Downvote this;

https://speedtest.vet/ https://vidmate.bid/ https://wordtopdf.ltd/

I can't seem to do it, I'm using 'new reddit' so the four spaces format dosent work. I've heard you need to use 3 backticks. I tried doing it like this:



```



console.log('hi')



```



to no avail.
« Last Edit: August 04, 2020, 01:00:18 pm by Jinesh »

Offline Miguel Gimenez

  • Lives here!
  • ****
  • Posts: 522
Re: How do you post a block of code
« Reply #1 on: July 28, 2020, 06:26:20 pm »
You can write tags similar to html ones (use square brackets):

(code)
Your code here
(/code)