How to put code in a post?

Tags: #<Tag:0x00007fb8829218e0> #<Tag:0x00007fb882921750> #<Tag:0x00007fb882921570>


Dear all,
sorry I forgot how to put formatted code in this forum…I am getting old.

have a nice day,


ok I found the webpage that explains that:


Glad you found out.

Note that there’s a button on the top of the editing panel that lets you format text as preformatted:

Of course, if you want to add syntax highlighting, use code fences followed by the language name, as described on the web page you cited:

 import os
 # your script here 


NB: for **ImageJ macro code**, please use the `javascript` syntax highlighting:

// your macro code

Help with macro

Haha guess great minds think alike :smile: