Sharing code files in topics

forum
macro
Tags: #<Tag:0x00007fb882059e38> #<Tag:0x00007fb882059c58>

#1

Is there a way to share .ijm files as file attachments in topics rather than cut and paste?


#2

.ijm files cannot be rendered by the forum backend. What’s wrong with copy and paste? If you use code fences (```javascript), you benefit from syntax highlighting and a scrollable frame.


Alternatively, you can post links to gists or to files stored on github, which is much better than a static version attached to a forum post. For example: