How to paste as code block in this forum

How to paste as code block in this forum

Rick_Tolleshaug_TSC
Advocate Advocate
400 Views
4 Replies
Message 1 of 5

How to paste as code block in this forum

Rick_Tolleshaug_TSC
Advocate
Advocate

How, on this forum, do I paste code as a code block (like this image)?

Rick_Tolleshaug_TSC_0-1731370220068.jpeg

 

Support told me you start and end code portion with three backticks, so I'll give it a try here:

```

(print "\nCode Block Test")

```

Nope, that's not it.

 

0 Likes
Accepted solutions (3)
401 Views
4 Replies
Replies (4)
Message 2 of 5

CodeDing
Advisor
Advisor
Accepted solution

@Rick_Tolleshaug_TSC ,

 

When you reply to a message, you will see this symbol in the message editor:

 

image.png

 

Then, you can post your code:

 

image.png

 

(defun c:HW ( / )
  (alert "Hello World!")
  (princ)
)

 

Best,

~DD

0 Likes
Message 3 of 5

Kent1Cooper
Consultant
Consultant
Accepted solution

Use this:

Kent1Cooper_0-1731370615813.png

Kent Cooper, AIA
0 Likes
Message 4 of 5

paullimapa
Mentor
Mentor
Accepted solution

In the Reply window on the top row there are a series of buttons:

paullimapa_0-1731370695885.png

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 5 of 5

Sea-Haven
Mentor
Mentor

Just a comment when posting super long code post as a file, just a personal thing a nuisance having to scroll down through pages of code to get to say last post. 

 

Cadtutor has a nice option "Expand" so only shows like 10 lines of code, but it is all there.