Glad you found out.
Note that there's a button on the top of the editing panel that lets you format text as
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:
# your script here
NB: for ImageJ macro code, please use the
// your macro code