Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Add the script to your HTML:

Then use the component in your HTML:

```html
<code-exercise-element name="exercise-name" show-tests>
def my_function(param):
""" A function that does something.
Expand All @@ -24,6 +25,7 @@ def my_function(param):
"""
# YOUR CODE HERE
</code-exercise-element>
```

The component will preserve whitespace and indentation in the code, so you can write the Python code naturally in your HTML.

Expand Down