ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Miva Template Language (MVT)

by Max Hegler ST2/ST3

A Miva Template Language (MVT) syntax plugin for Sublime Text 2/3

Labels miva, mvt, syntax, language

Details

Installs

  • Total 276
  • Win 174
  • OS X 74
  • Linux 28
May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14
Windows 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 1 1 1 0 0 0
OS X 0 1 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 1 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Miva Template Language (MVT)

Miva Template Language (MVT) syntax plugin for Sublime Text 2/3.

UPDATED FOR 9.0006!

UPDATED FOR ENGINE 5.24!

Functions Added in 5.24:

  • miva_setprocessname
  • miva_async_sleep
  • miva_csv_encode
  • miva_html_strip
  • miva_cdata_encode
  • file_touch
  • miva_struct_merge
  • miva_struct_merge_ref
  • indexofl
  • indexofli
  • miva_array_filter
  • miva_array_filter_ref
  • miva_ieee754_normalize
  • rsa_load_publickey_engine
  • rsa_load_privatekey_engine
  • crypto_rand_set_rand_engine

Syntax Features
  • Proper <mvt:comment> highlighting.
  • Support for <mvt:assign> function names.
  • Support for <mvt:do> function names.
  • Support for toolkit and toolbelt function names.
  • Robust autocomplete for Mivascript and Miva Merchant functions.
Package Features
  • Adds Toggle Comment support for <mvt:comment> tags and HTML style block comments.
  • Adds Symbol List definition preferences for function subsets.

Install via Package Control

  • Open Sublime Text 2/3
  • Access your Command Palette Ctrl+Shift+P for Windows/Linux or +Shift+P for Mac.
  • Type “Package Control: Install Package” … Press ENTER.
  • Search for “MVT”, “Miva Template Language” or any similar search term … Press ENTER.
  • Done!

Plugins that Work Well with Miva Template Language (MVT)

  • DefaultFileType - This package sets the default file type of new files to be either the same as the current file, or a predefined default.

Here is my default_file_type.sublime-settings file contents:

{
    "default_new_file_syntax": "Packages/Miva Template Language (MVT)/MVT.tmLanguage",
    "use_current_file_syntax": false
}

Here is my bh_core.sublime-settings file contents:

{
    "user_brackets": [
        {
            "name": "mvt_angle",
            "open": "(<)(?=[^?%]|$)",
            "close": "(?:(?<=[^?%])|(?<=^))(>)",
            "style": "angle",
            "scope_exclude": [
                "string",
                "comment"
            ],
            "language_filter": "whitelist",
            "language_list": [
                "MVT"
            ],
            "plugin_library": "bh_modules.tags",
            "enabled": true
        }
    ]
}

Here is my bh_tag.sublime-settings file contents:

{
    // Determine which style of tag-matching to use in which syntax
    "tag_mode": {
        "xhtml": ["XML"],
        "html": [
            "HTML",
            "HTML 5",
            "PHP",
            "HTML (Jinja Templates)",
            "HTML (Rails)",
            "HTML (Twig)",
            "HTML (Django)",
            "laravel-blade",
            "Handlebars",
            "AngularJS",
            "Java Server Pages (JSP)",
            "MVT"
        ],
        "cfml": ["HTML+CFML", "ColdFusion", "ColdFusionCFC"]
    },

    // Tags that never have a closing.  You can use 'null' if it does not require a pattern.
    "single_tag_patterns": {
        "xhtml": null,
        "html": "area|base|basefont|br|col|embed|frame|hr|img|input|isindex|keygen|link|meta|param|source|track|wbr|mvt:else|mvt:elseif",
        "cfml": "area|base|basefont|br|col|embed|frame|hr|img|input|isindex|keygen|link|meta|param|source|track|wbr"
    },

    // Self closing HTML tags. You can use 'null' if it does not require a pattern.
    "self_closing_patterns": {
        "xhtml": null,
        "html": "colgroup|dd|dt|li|options|p|td|tfoot|th|thead|tr|mvt:assign|mvt:callcontinue|mvt:callstop|mvt:eval|mvt:exit|mvt:foreachcontinue|mvt:foreachstop|mvt:item|mvt:miva|mvt:whilecontinue|mvt:whilestop",
        "cfml": "cf.+|colgroup|dd|dt|li|options|p|td|tfoot|th|thead|tr"
    }
}