index.html 3.5 KB

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