JSFiddle - React, Tailwind, and code Playground

by Gabriele Petrioli

HTML

<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>
     

<pre class="prettyprint linenums nocode">
Manipulate[
 tick;
 Module[{a1, a2, a3, v1, v2, v3, h1, a1d, a2d, a3d, z},

  Which[state == "init" || state2 == "on",
   state2 = "off";
   If[state == "init", state = "paused"];  
 state == "running" || state == "step",
   If[currentTime > maxTime, currentTime = 0]
   ]; 
]
</pre>

CSS

ol.linenums{
    counter-reset:linenumber;
}
ol.linenums li{
    list-style-type:none;
    counter-increment:linenumber;
}
ol.linenums li:before{
    content: counter(linenumber);
    float:left;
    margin-left:-4em;
    text-align:right;
    width:3em;
}

JavaScript

prettyPrint()