all repos — NoPaste @ 4d5201f1a9fd36bf5ab4e04de97fc70c12081b9a

Resurrected - The PussTheCat.org fork of NoPaste

scripts/CodeMirror/mode/ttcn-cfg/index.html (view raw)

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