From 53ad0e4218af50e7ee7b530f76d6aba758dd8c8a Mon Sep 17 00:00:00 2001 From: Alya Abbott Date: Tue, 12 Mar 2024 23:50:43 -0700 Subject: [PATCH] help: Add example playground URL templates. Fixes #29067. Co-authored-by: Rohan Sharma --- help/code-blocks.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/help/code-blocks.md b/help/code-blocks.md index f61e23010f..d0a4fbb268 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,