: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
<title>CodeMirror: TTCN mode</title>
<link rel=stylesheet href="../../doc/docs.css">
<link rel="stylesheet" href="../../lib/codemirror.css">
<script src="../../lib/codemirror.js"></script>
<script src="ttcn.js"></script>
border-top: 1px solid black;
border-bottom: 1px solid black;
<a href="http://codemirror.net"><h1>CodeMirror</h1>
<img id=logo src="../../doc/logo.png">
<li><a href="../../index.html">Home</a>
<li><a href="../../doc/manual.html">Manual</a>
<li><a href="https://github.com/codemirror/codemirror">Code</a>
<li><a href="../index.html">Language modes</a>
<li><a class=active href="http://en.wikipedia.org/wiki/TTCN">TTCN</a>
<textarea id="ttcn-code">
/* import types from ASN.1 */
import from Types language "ASN.1:1997" all;
/* During the conversion phase from ASN.1 to TTCN-3 */
/* - the minus sign (Message-Type) within the identifiers will be replaced by underscore (Message_Type)*/
/* - the ASN.1 identifiers matching a TTCN-3 keyword (objid) will be postfixed with an underscore (objid_)*/
template SenderID localObjid := objid {itu_t(0) identified_organization(4) etsi(0)};
/* ASN.1 Message-Type mapped to TTCN-3 Message_Type */
template Message receiveMsg(template (present) Message_Type p_messageType) := {
/* ASN.1 objid mapped to TTCN-3 objid_ */
template Message sendInviteMsg := {
/* optional fields may be assigned by omit or may be ignored/skipped */
description := "Invite Message",
template Message sendAcceptMsg modifies sendInviteMsg := {
description := "Accept Message"
template Message sendErrorMsg modifies sendInviteMsg := {
description := "Error Message"
template Message expectedErrorMsg := {
template Message expectedInviteMsg modifies expectedErrorMsg := {
template Message expectedAcceptMsg modifies expectedErrorMsg := {
} with { encode "BER:1997" }
var ttcnEditor = CodeMirror.fromTextArea(document.getElementById("ttcn-code"), {
ttcnEditor.setSize(600, 860);
var mac = CodeMirror.keyMap.default == CodeMirror.keyMap.macDefault;
CodeMirror.keyMap.default[(mac ? "Cmd" : "Ctrl") + "-Space"] = "autocomplete";
<p><strong>Language:</strong> Testing and Test Control Notation
(<a href="http://en.wikipedia.org/wiki/TTCN">TTCN</a>)
<p><strong>MIME types defined:</strong> <code>text/x-ttcn,
text/x-ttcn3, text/x-ttcnpp</code>.</p>
<p>The development of this mode has been sponsored by <a href="http://www.ericsson.com/">Ericsson
<p>Coded by Asmelash Tsegay Gebretsadkan </p>