comparison .cms/lib/codemirror/mode/gherkin/index.html @ 0:78edf6b517a0 draft

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