Guest User

Untitled

a guest
Nov 4th, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.41 KB | None | 0 0
  1. <html>
  2.     <head>
  3.         <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css"
  4.        integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
  5.        
  6.         <title> asm Base Format Check </title>
  7.  
  8.         <script src="codemirror/lib/codemirror.js"> </script>
  9.         <link href="codemirror/lib/codemirror.css" rel="stylesheet">
  10.         <script scr="codemirror/mode/gas/gas.js"> </script>
  11.         <link href="codemirror/theme/darcula.css" rel="stylesheet">
  12.     </head>
  13.  
  14.     <body>
  15.         <center> <h1>Enter the asm file content:</h1></center>
  16.  
  17.         <form method="POST" action= "/send">
  18.             <textarea id="texta" type="text" name="code" style="height: 500;">{% autoescape false %}{{  COD  }}{% endautoescape %}</textarea>
  19.             <br><br>
  20.             <center> <input class="btn btn-primary" type="submit" value="Check your code!"> </center>
  21.         </form>
  22.            
  23.         <center>
  24.             <h3>Your errors are: </h3>
  25.             <p>{% autoescape false %} {{  ERRS  }} {% endautoescape %}</p>
  26.         </center>
  27.  
  28.  
  29.        
  30.         <script>
  31.             var editor = CodeMirror.fromTextArea(document.getElementById("texta"), {
  32.                 lineNumbers: true,
  33.                 mode: {name: "texta", theme: "darcula",mode:"gas"}
  34.             });
  35.         </script>
  36.     </body>
  37.  
  38. </html>
Add Comment
Please, Sign In to add comment