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