Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

help: Add example playground URL templates.

Alya Abbott53ad0e4218af
diff --git a/help/code-blocks.md b/help/code-blocks.md
index f61e23010f1..d0a4fbb2686 100644
--- a/help/code-blocks.md
+++ b/help/code-blocks.md
@@ -147,6 +147,19 @@ specified code playground.
generate the URL. You can refer to parts of the documentation on URL
templates from [adding a custom linkifier](/help/add-a-custom-linkifier).
+### Examples of playground URL templates
+
+Here is a list of playground URL templates you can use for some popular
+languages:
+
+* For Java: `https://pythontutor.com/java.html#code={code}` or
+ `https://cscircles.cemc.uwaterloo.ca/java_visualize/#code={code}`
+* For JavaScript: `https://pythontutor.com/javascript.html#code={code}`
+* For Python: `https://pythontutor.com/python-compiler.html#code={code}`
+* For C: `https://pythontutor.com/c.html#code={code}`
+* For C++: `https://pythontutor.com/cpp.html#code={code}`
+* For Rust: `https://play.rust-lang.org/?code={code}`
+
### Technical details
* You can configure multiple playgrounds for a given language; if you do that,