CodeMirror: Smarty mode


Smarty mode

Mode for Smarty version 2 or 3, which allows for custom delimiter tags.

Several configuration parameters are supported:

  • leftDelimiter and rightDelimiter,
    which should be strings that determine where the Smarty syntax
    starts and ends.
  • version, which should be 2 or 3.
  • baseMode, which can be a mode spec
    like "text/html" to set a different background mode.

MIME types defined: text/x-smarty

Smarty 2, custom delimiters

Smarty 3