Playground: Difference between revisions
No edit summary |
KalmanKeri (talk | contribs) (→Math) |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
This page is used to test wiki | This page is used to test wiki syntax. | ||
== Math == | |||
<math>\mbox{Atoms}~ a, b ::= \mathsf{Foo} ~|~ \mathsf{Bar}</math> | <math>\mbox{Atoms}~ a, b ::= \mathsf{Foo} ~|~ \mathsf{Bar}</math> | ||
| Line 14: | Line 15: | ||
\end{align} | \end{align} | ||
</math> | </math> | ||
<math> | |||
A = \underset{\text{asdf}}{\boxed{B}} | |||
+ \underset{\text{fdsa}}{\boxed{C + D}} | |||
+ E + F | |||
</math> | |||
<math> | |||
\underset{\text{underset}}{\boxed{B}} | |||
\overset{\text{overset}}{\boxed{C}} | |||
</math> | |||
== Code == | |||
Inline code: <code>while (true) {}</code> | |||
Code block without syntax highlight: | |||
datatype ty = Basic of string | |||
| Arrow of ty * ty | |||
| Prod of ty * ty | |||
== HTML tags == | |||
<span style="color: red; text-decoration: line-through;">Typo to be corrected</span> | |||
<span style="background-color: #eee; padding: 4px 8px;">Text with background</span> | |||
<div style="background-color: #eee; padding: 4px 8px;">Text block with background</div> | |||
Latest revision as of 15:49, 13 May 2023
This page is used to test wiki syntax.
Math
[math]\displaystyle{ \mbox{Atoms}~ a, b ::= \mathsf{Foo} ~|~ \mathsf{Bar} }[/math]
[math]\displaystyle{ \begin{align} P, Q ::= & \; x(y).P \,\,\, \, \, & \text{Receive on channel }x\text{, bind the result to }y\text{, then run }P \\ & \; | \; \overline{x} \langle y \rangle.P \,\,\, \, \, &\text{Send the value }y\text{ over channel }x\text{, then run }P \\ & \; | \; P|Q \,\,\, \, \, \, \, \, \, &\text{Run }P\text{ and }Q\text{ simultaneously} \\ & \; | \; (\nu x)P \,\,\, &\text{Create a new channel }x\text{ and run }P \\ & \; | \; !P \,\,\, &\text{Repeatedly spawn copies of }P \\ & \; | \; 0 & \text{Terminate the process} \end{align} }[/math]
[math]\displaystyle{ A = \underset{\text{asdf}}{\boxed{B}} + \underset{\text{fdsa}}{\boxed{C + D}} + E + F }[/math]
[math]\displaystyle{ \underset{\text{underset}}{\boxed{B}} \overset{\text{overset}}{\boxed{C}} }[/math]
Code
Inline code: while (true) {}
Code block without syntax highlight:
datatype ty = Basic of string
| Arrow of ty * ty
| Prod of ty * ty
HTML tags
Typo to be corrected
Text with background