Skip to main content

Add code blocks

Written by James Calleja
Software Test Engineer at MindTouch
This page applies to:MindTouch 4

In MindTouch, users can add code blocks through the Styles drop-down menu in the editor. Adding code blocks to pages allows users to add JavaScript, CSS and DekiScript directly to their content via the editor. Follow these instructions to add code to your page via the editor:

  1. Place the cursor on the page where you want to add code.
  2. Click the Formatting styles menu in the editor toolbar.
  3. Choose one of the three code blocks, depending on your coding needs: DekiScriptJavaScript (JEM) and CSS.  


  1. Add any amount of code blocks to suit your needs. The code blocks are labeled by type:


  1. Add code into the blocks for customized content:


What's next

Learn how to enhance your pages with Dekiscript.

  • Was this article helpful?