Search code examples
javascripthtmlcssiframecodemirror

Applying multiple codemirror scripts to one iframe


I have installed Codemirror on my website and I have almost got it where I want it I can write code in html and preview it in an iframe however I want to be able to apply a CSS text area and Javascript text area to the same iframe???

Does anyone know how?


Solution

  • Simply load both modes and give the different CodeMirror instances a different mode option.