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