breditor

Dynamic Python edition/execution in the browser
git clone git://git.vgx.fr/breditor
Log | Files | Refs

test.html (580B)


      1 <!doctype html>
      2 <html>
      3 <head>
      4 <meta charset="UTF-8">
      5 <link rel="stylesheet" type="text/css" href="styles/breditor.css" />
      6 <script src="lib/brython.js"></script>
      7 <script src="lib/brython_stdlib.js"></script>
      8 <script src="lib/ace/ace.js"></script>
      9 <script src="lib/ace/mode-python.js"></script>
     10 <script type="text/python" src="lib/breditor.py"></script>
     11 </head>
     12 
     13 <body lang='fr' onload="brython();">
     14 
     15 <h1> Test d'éditeur python </h1>
     16 
     17 <p>
     18 Ça devrait être ici :
     19 </p>
     20 
     21 <pre id="ed1" class="breditor">
     22 <code>from browser import alert
     23 alert("Hello !")
     24 </code></pre>
     25 
     26 </body>
     27 </html>