You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.4 KiB

8 months ago
  1. <!doctype html>
  2. <title>CodeMirror: VB.NET mode</title>
  3. <meta charset="utf-8"/>
  4. <link rel=stylesheet href="../../doc/docs.css">
  5. <link rel="stylesheet" href="../../lib/codemirror.css">
  6. <link href="http://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet">
  7. <script src="../../lib/codemirror.js"></script>
  8. <script src="vb.js"></script>
  9. <script src="../../addon/runmode/runmode.js"></script>
  10. <style>
  11. .CodeMirror {border: 1px solid #aaa; height:210px; height: auto;}
  12. .CodeMirror-scroll { overflow-x: auto; overflow-y: hidden;}
  13. .CodeMirror pre { font-family: Inconsolata; font-size: 14px}
  14. </style>
  15. <div id=nav>
  16. <a href="https://codemirror.net/5"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></a>
  17. <ul>
  18. <li><a href="../../index.html">Home</a>
  19. <li><a href="../../doc/manual.html">Manual</a>
  20. <li><a href="https://github.com/codemirror/codemirror5">Code</a>
  21. </ul>
  22. <ul>
  23. <li><a href="../index.html">Language modes</a>
  24. <li><a class=active href="#">VB.NET</a>
  25. </ul>
  26. </div>
  27. <article>
  28. <h2>VB.NET mode</h2>
  29. <div id="edit">
  30. <textarea name="code" id="code" >
  31. Class rocket
  32. Private quality as Double
  33. Public Sub launch() as String
  34. If quality > 0.8
  35. launch = "Successful"
  36. Else
  37. launch = "Failed"
  38. End If
  39. End sub
  40. End class
  41. </textarea>
  42. </div>
  43. <p>MIME type defined: <code>text/x-vb</code>.</p>
  44. <script>CodeMirror.fromTextArea(document.getElementById("code"))</script>
  45. </article>