4,577
edits
(→Inserting code: Section on non-highlighted code) |
|||
Line 106: | Line 106: | ||
==== Run online ==== | ==== Run online ==== | ||
You can also include a permalink to [[TryAPL]], [[Try It Online]], ''repl.it'', | You can also include a permalink to [[TryAPL]], [[Try It Online]], ''repl.it'', ''abrudz.github.io/ngn-apl'' etc. right before the source tag, for example | ||
<blockquote><pre> | <blockquote><pre>{{try|1=https://tryapl.org/?clear&q=%7B(2%3D%2B%E2%8C%BF0%3D%E2%8D%B5%E2%88%98.%7C%E2%8D%B5)%2F%E2%8D%B5%7D%E2%8D%B3100&run}} | ||
<source lang=apl> | <source lang=apl> | ||
{(2=+⌿0=⍵∘.|⍵)/⍵}⍳100 | {(2=+⌿0=⍵∘.|⍵)/⍵}⍳100 | ||
Line 117: | Line 117: | ||
<blockquote> | <blockquote> | ||
{{try|1=https://tryapl.org/?clear&q=%7B(2%3D%2B%E2%8C%BF0%3D%E2%8D%B5%E2%88%98.%7C%E2%8D%B5)%2F%E2%8D%B5%7D%E2%8D%B3100&run}} | |||
<source lang=apl> | <source lang=apl> | ||
{(2=+⌿0=⍵∘.|⍵)/⍵}⍳100 | {(2=+⌿0=⍵∘.|⍵)/⍵}⍳100 | ||
2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 | 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 | ||
</source></blockquote> | </source></blockquote> | ||
'''Note:''' Make sure to spell the template exactly as <code>{{try|1=</code> including <code>1=</code> as otherwise any equal sign in the URL will prevent the template from working properly! | |||
==== Very long code blocks ==== | ==== Very long code blocks ==== | ||
Use | Use |