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 267
  • Win 170
  • OS X 69
  • Linux 28
Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12
Windows 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 1 0 0 1 0
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0
Linux 0 2 0 0 0 1 0 0 0 0 0 0 0 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 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"
    }
}