Skip to content

Run your code with Neil.js

Prithvi Reddy edited this page Oct 19, 2021 · 2 revisions

Usage

1. This command needs to be triggered by typing /run in the message box. Not only this but all Neil.js commands are slash commands, i.e, they can be triggered by a forward slash /

Trigger /run

2. Navigate through available languages using your mouse or arrows. Select a language by mouse or by pressing Tab / Enter. Send the message after selection

Select a language

You should get a message from Neil.js now, prompting you to send code.

Prompt Box

3. Send your code enclosed in a code block(enclosed with 3 backticks `) in the format shown below. Beware backticks should be on a new line for proper formatting

Correct Format Wrong Format Wrong Format 2

Python code sample:

Python sample

[Optional] You can also add syntax highlighting with colors by appending first line of backticks with file extension of that language. Improves readability as shown below...

Syntax Highlight

Finally, send your code, Neil.js will reply with output almost instantly!

Output


Currently available languages:

  1. C
  2. C++
  3. Java
  4. JavaScript (Node)
  5. Python
  6. SQL (Sqlite)
  7. TypeScript
Clone this wiki locally