github.com/elliott5/community@v0.14.1-0.20160709191136-823126fb026a/app/public/codemirror/mode/ttcn-cfg/index.html (about)

     1  <!doctype html>
     2  
     3  <title>CodeMirror: TTCN-CFG 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="ttcn-cfg.js"></script>
    10  <style type="text/css">
    11      .CodeMirror {
    12          border-top: 1px solid black;
    13          border-bottom: 1px solid black;
    14      }
    15  </style>
    16  <div id=nav>
    17      <a href="http://codemirror.net"><h1>CodeMirror</h1>
    18          <img id=logo src="../../doc/logo.png">
    19      </a>
    20  
    21      <ul>
    22          <li><a href="../../index.html">Home</a>
    23          <li><a href="../../doc/manual.html">Manual</a>
    24          <li><a href="https://github.com/codemirror/codemirror">Code</a>
    25      </ul>
    26      <ul>
    27          <li><a href="../index.html">Language modes</a>
    28          <li><a class=active href="http://en.wikipedia.org/wiki/TTCN">TTCN-CFG</a>
    29      </ul>
    30  </div>
    31  <article>
    32      <h2>TTCN-CFG example</h2>
    33      <div>
    34          <textarea id="ttcn-cfg-code">
    35  [MODULE_PARAMETERS]
    36  # This section shall contain the values of all parameters that are defined in your TTCN-3 modules.
    37  
    38  [LOGGING]
    39  # In this section you can specify the name of the log file and the classes of events
    40  # you want to log into the file or display on console (standard error).
    41  
    42  LogFile := "logs/%e.%h-%r.%s"
    43  FileMask := LOG_ALL | DEBUG | MATCHING
    44  ConsoleMask := ERROR | WARNING | TESTCASE | STATISTICS | PORTEVENT
    45  
    46  LogSourceInfo := Yes
    47  AppendFile := No
    48  TimeStampFormat := DateTime
    49  LogEventTypes := Yes
    50  SourceInfoFormat := Single
    51  LogEntityName := Yes
    52  
    53  [TESTPORT_PARAMETERS]
    54  # In this section you can specify parameters that are passed to Test Ports.
    55  
    56  [DEFINE]
    57  # In this section you can create macro definitions,
    58  # that can be used in other configuration file sections except [INCLUDE].
    59  
    60  [INCLUDE]
    61  # To use configuration settings given in other configuration files,
    62  # the configuration files just need to be listed in this section, with their full or relative pathnames.
    63  
    64  [EXTERNAL_COMMANDS]
    65  # This section can define external commands (shell scripts) to be executed by the ETS
    66  # whenever a control part or test case is started or terminated.
    67  
    68  BeginTestCase := ""
    69  EndTestCase := ""
    70  BeginControlPart := ""
    71  EndControlPart := ""
    72  
    73  [EXECUTE]
    74  # In this section you can specify what parts of your test suite you want to execute.
    75  
    76  [GROUPS]
    77  # In this section you can specify groups of hosts. These groups can be used inside the
    78  # [COMPONENTS] section to restrict the creation of certain PTCs to a given set of hosts.
    79  
    80  [COMPONENTS]
    81  # This section consists of rules restricting the location of created PTCs.
    82  
    83  [MAIN_CONTROLLER]
    84  # The options herein control the behavior of MC.
    85  
    86  TCPPort := 0
    87  KillTimer := 10.0
    88  NumHCs := 0
    89  LocalAddress :=
    90          </textarea>
    91      </div>
    92  
    93      <script> 
    94        var ttcnEditor = CodeMirror.fromTextArea(document.getElementById("ttcn-cfg-code"), {
    95          lineNumbers: true,
    96          matchBrackets: true,
    97          mode: "text/x-ttcn-cfg"
    98        });
    99        ttcnEditor.setSize(600, 860);
   100        var mac = CodeMirror.keyMap.default == CodeMirror.keyMap.macDefault;
   101        CodeMirror.keyMap.default[(mac ? "Cmd" : "Ctrl") + "-Space"] = "autocomplete";
   102      </script>
   103      <br/>
   104      <p><strong>Language:</strong> Testing and Test Control Notation -
   105          Configuration files
   106          (<a href="http://en.wikipedia.org/wiki/TTCN">TTCN-CFG</a>)
   107      </p>
   108      <p><strong>MIME types defined:</strong> <code>text/x-ttcn-cfg</code>.</p>
   109  
   110      <br/>
   111      <p>The development of this mode has been sponsored by <a href="http://www.ericsson.com/">Ericsson
   112      </a>.</p>
   113      <p>Coded by Asmelash Tsegay Gebretsadkan </p>
   114  </article>
   115