Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <link rel="stylesheet" href="">

<a id="demo-link-docs" target="_blank" href="">🢥 Go to Documentation</a>
<h2 id="demo-title">DEMO of Embedded Coding Tool <small>v1.3</small></h2>

<div class="demo-instance">
  <div class="demo">
    <div class="demo-search">
      <!-- input element used for typing the search  -->
      Type for starting search: <input type="text" class="ctw-input" autocomplete="off" data-ctw-ino="1"> <button class="demo-clear" onclick="ECT.Handler.clear('1');" title="Clear search and results">❌</button>
    <div id="demo-selected">
      <!-- example of an extra input element for testing the Embedded Coding Tool select entity function -->
      Your selection is: <span id="demo-paste-selected"></span>

  <!-- div element used for showing the search results -->
  <div class="ctw-window" data-ctw-ino="1"></div>

<script src=""></script>


                body {
  font-family: "Ubuntu", Tahoma, "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 10px 20px 20px 20px;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1rem;
  color: #333;
  background-color: #fff;
#demo-link-docs {
  float: right;
#demo-title {
  margin-top: 50px;
  margin-bottom: 50px;
  text-align: center;
#demo-selected {
  float: right;
  display: none;
#demo-paste-selected {
  background-color: #ff9;
  padding: 5px;
.demo-instance {
  border: 1px solid #ccc;
  margin-bottom: 40px;
  padding: 10px;
  background-color: #eee;
  border-radius: 0.25rem;
.demo {
  margin-top: 20px;
.demo::after {
  clear: both;
  content: "";
  display: block;
.demo-search {
  float: left;
  margin-bottom: 20px;
.demo input {
  width: 400px;
  height: 1.2rem;
  font-size: 0.9rem;
  padding-left: 4px;
.demo-clear {
  cursor: pointer;
  padding: 2px;
.ctw-window {
  background-color: #fff;



                // Embedded Coding Tool settings object
// please note that only the property "apiServerUrl" is required
// the other properties are optional
const mySettings = {
  // The API located at the URL below 
  // should be used only for software
  // development and testing. 
  // ICD content at this location might not
  // be up to date or complete. 
  // For production, use the API located at
  // with proper OAUTH authentication
  apiServerUrl: ""

// example of an Embedded Coding Tool using the callback selectedEntityFunction for copying the code selected in an html element
const myCallbacks = {
  selectedEntityFunction: selectedEntity => {
    document.getElementById("demo-paste-selected").innerHTML =
      selectedEntity.code + " - " + selectedEntity.bestMatchText;
    document.getElementById("demo-selected").style.display = "inline";

// configure the ECT Handler with mySettings and myCallbacks
ECT.Handler.configure(mySettings, myCallbacks);