1.2.0 • Published 2 years ago

@yank-note/extension-code-runner v1.2.0

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
2 years ago

Code Runner

Run code for multiple languages: BASH/SH, PHP, Python, Node.js, Bat, C, Java and more.

Note: This plugin is not available for Mac App Store downloaded Yank Note.

The first line of the code block needs to contain the string --run--.

```js
// --run--
await new Promise(r => setTimeout(r, 500))
ctx.ui.useToast().show("info", "HELLOWORLD!")
console.log('HELLOWORLD')
```

```node
// --run--
console.log('HELLOWORLD')
```

```php
// --run--
echo 'HELLOWORLD!';
```

```python
# --run--
print('HELLOWORLD')
```

```bash
# --run--
date
```

```bat
REM --run--
@echo HELLOWORLD
```

```c
// --run-- gcc $tmpFile.c -o $tmpFile.out && $tmpFile.out

#include <stdio.h>

int main () {
    printf("Hello, World!");
    return 0;
}
```

```java
// --run-- java $tmpFile.java

class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}
```
1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago