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.

48 lines
1.5 KiB

2 months ago
  1. <!doctype html>
  2. <title>CodeMirror: Gherkin mode</title>
  3. <meta charset="utf-8"/>
  4. <link rel=stylesheet href="../../doc/docs.css">
  5. <link rel="stylesheet" href="../../lib/codemirror.css">
  6. <script src="../../lib/codemirror.js"></script>
  7. <script src="gherkin.js"></script>
  8. <style>.CodeMirror { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</style>
  9. <div id=nav>
  10. <a href="https://codemirror.net/5"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></a>
  11. <ul>
  12. <li><a href="../../index.html">Home</a>
  13. <li><a href="../../doc/manual.html">Manual</a>
  14. <li><a href="https://github.com/codemirror/codemirror5">Code</a>
  15. </ul>
  16. <ul>
  17. <li><a href="../index.html">Language modes</a>
  18. <li><a class=active href="#">Gherkin</a>
  19. </ul>
  20. </div>
  21. <article>
  22. <h2>Gherkin mode</h2>
  23. <form><textarea id="code" name="code">
  24. Feature: Using Google
  25. Background:
  26. Something something
  27. Something else
  28. Scenario: Has a homepage
  29. When I navigate to the google home page
  30. Then the home page should contain the menu and the search form
  31. Scenario: Searching for a term
  32. When I navigate to the google home page
  33. When I search for Tofu
  34. Then the search results page is displayed
  35. Then the search results page contains 10 individual search results
  36. Then the search results contain a link to the wikipedia tofu page
  37. </textarea></form>
  38. <script>
  39. var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
  40. </script>
  41. <p><strong>MIME types defined:</strong> <code>text/x-feature</code>.</p>
  42. </article>