How to post code or .omnijs files?


#1

How can I post code or attach a <.omnijs> file?


#2

.omnigrafflejs files are packages (special folders containing others folders and files), but .omnijs files are plain text JavasScript source.

You can include their contents in a post here by ‘fencing’ the code above and below with three back-ticks, and optionally placing the name of the language after the upper three backticks (for language-sensitive syntax highlighting).

For example, if you enter/paste:

```javascript
(() => {
    'use strict';

   console.log('hello world!')
})();
```

it will be rendered as:

(() => {
    'use strict';

   console.log('hello world!')
})();

#3

Thank you! :-)