Skip to content

Commit

Permalink
feat: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
twibiral committed Jun 5, 2022
1 parent f0dd9ae commit 2ba49b4
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The result is shown only after the execution is finished. It is not possible to
- Requirements: Python is installed and the correct path is set in the settings.
```python
def hello(name):
print(name)
print("Hello", name)
if __name__ == "__main__":
hello("Eve")
Expand Down Expand Up @@ -65,17 +65,35 @@ The result is shown only after the execution is finished. It is not possible to
% query
likes(john, X).
```
Support for the following is planned:
- Java
- Matlab
- Julia Lang
- R
Open for suggestions.
## Running in Preview
Adding `run-` before the language name in the code blocks (as in the example below) renders the code block in the
preview already.
This allows you to execute the code in the preview.
```
```run-python
def hello(name):
print("Hello", name)
if __name__ == "__main__":
hello("Eve")
``````
## Installation
In your vault go to Settings > Community plugins > Browse and search for "Execute Code". Select the plugin, install it and activate it.
In your vault go to Settings > Community plugins > Browse and search for "Execute Code". Select the plugin, install it
and activate it.
or
Expand Down

0 comments on commit 2ba49b4

Please sign in to comment.