1.4.0 • Published 12 months ago

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

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
12 months 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))
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.4.0

12 months ago

1.3.0

1 year ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago