From d0690a65f14ba4dfee17af12ff7cee645425d18f Mon Sep 17 00:00:00 2001 From: arthurkatz_fr Date: Fri, 21 Oct 2016 00:48:47 +0200 Subject: [PATCH 1/2] adding missing mjml snippets --- mjall.sublime-snippet | 6 ++++++ mjattributes.sublime-snippet | 8 ++++++++ mjclass.sublime-snippet | 6 ++++++ mjcontainer.sublime-snippet | 2 +- mjdivider.sublime-snippet | 6 ++++++ mjfont.sublime-snippet | 6 ++++++ mjgroup.sublime-snippet | 8 ++++++++ mjhead.sublime-snippet | 8 ++++++++ mjhero.sublime-snippet | 10 ++++++++++ mjhtml.sublime-snippet | 8 ++++++++ mjimage.sublime-snippet | 6 ++---- mjinclude.sublime-snippet | 6 ++++++ mjlocation.sublime-snippet | 7 +++++++ mjraw.sublime-snippet | 8 ++++++++ mjrow.sublime-snippet | 8 -------- mjstyle.sublime-snippet | 8 ++++++++ mjtitle.sublime-snippet | 8 ++++++++ 17 files changed, 106 insertions(+), 13 deletions(-) create mode 100644 mjall.sublime-snippet create mode 100644 mjattributes.sublime-snippet create mode 100644 mjclass.sublime-snippet create mode 100644 mjdivider.sublime-snippet create mode 100644 mjfont.sublime-snippet create mode 100644 mjgroup.sublime-snippet create mode 100644 mjhead.sublime-snippet create mode 100644 mjhero.sublime-snippet create mode 100644 mjhtml.sublime-snippet create mode 100644 mjinclude.sublime-snippet create mode 100644 mjlocation.sublime-snippet create mode 100644 mjraw.sublime-snippet delete mode 100644 mjrow.sublime-snippet create mode 100644 mjstyle.sublime-snippet create mode 100644 mjtitle.sublime-snippet diff --git a/mjall.sublime-snippet b/mjall.sublime-snippet new file mode 100644 index 0000000..54abd79 --- /dev/null +++ b/mjall.sublime-snippet @@ -0,0 +1,6 @@ + + ]]> + mjall + MJML - MJML All + text.mjml.basic + diff --git a/mjattributes.sublime-snippet b/mjattributes.sublime-snippet new file mode 100644 index 0000000..f50c078 --- /dev/null +++ b/mjattributes.sublime-snippet @@ -0,0 +1,8 @@ + + + $1 +]]> + mjattributes + MJML - MJML Attributes + text.mjml.basic + diff --git a/mjclass.sublime-snippet b/mjclass.sublime-snippet new file mode 100644 index 0000000..addeb26 --- /dev/null +++ b/mjclass.sublime-snippet @@ -0,0 +1,6 @@ + + ]]> + mjclass + MJML - MJML Class + text.mjml.basic + diff --git a/mjcontainer.sublime-snippet b/mjcontainer.sublime-snippet index 6ae591e..84ca530 100644 --- a/mjcontainer.sublime-snippet +++ b/mjcontainer.sublime-snippet @@ -3,6 +3,6 @@ $1 ]]> mjcontainer - MJML - MJML container + MJML - MJML Container text.mjml.basic diff --git a/mjdivider.sublime-snippet b/mjdivider.sublime-snippet new file mode 100644 index 0000000..548519b --- /dev/null +++ b/mjdivider.sublime-snippet @@ -0,0 +1,6 @@ + + ]]> + mjdivider + MJML - MJML Divider + text.mjml.basic + diff --git a/mjfont.sublime-snippet b/mjfont.sublime-snippet new file mode 100644 index 0000000..ff21db9 --- /dev/null +++ b/mjfont.sublime-snippet @@ -0,0 +1,6 @@ + + ]]> + mjfont + MJML - MJML Font + text.mjml.basic + diff --git a/mjgroup.sublime-snippet b/mjgroup.sublime-snippet new file mode 100644 index 0000000..7c63aee --- /dev/null +++ b/mjgroup.sublime-snippet @@ -0,0 +1,8 @@ + + + $1 +]]> + mjgroup + MJML - MJML Group + text.mjml.basic + diff --git a/mjhead.sublime-snippet b/mjhead.sublime-snippet new file mode 100644 index 0000000..7d89af9 --- /dev/null +++ b/mjhead.sublime-snippet @@ -0,0 +1,8 @@ + + + $1 +]]> + mjhead + MJML - MJML Head + text.mjml.basic + diff --git a/mjhero.sublime-snippet b/mjhero.sublime-snippet new file mode 100644 index 0000000..ed2c28b --- /dev/null +++ b/mjhero.sublime-snippet @@ -0,0 +1,10 @@ + + + + $1 + + ]]> + mjhero + MJML - MJML Hero + text.mjml.basic + diff --git a/mjhtml.sublime-snippet b/mjhtml.sublime-snippet new file mode 100644 index 0000000..a9cbb84 --- /dev/null +++ b/mjhtml.sublime-snippet @@ -0,0 +1,8 @@ + + + $1 +]]> + mjhtml + MJML - MJML Html + text.mjml.basic + diff --git a/mjimage.sublime-snippet b/mjimage.sublime-snippet index 14788a2..4f16fbb 100644 --- a/mjimage.sublime-snippet +++ b/mjimage.sublime-snippet @@ -1,8 +1,6 @@ - - $1 -]]> + ]]> mjimage - MJML - MJML image + MJML - MJML Image text.mjml.basic diff --git a/mjinclude.sublime-snippet b/mjinclude.sublime-snippet new file mode 100644 index 0000000..5a33a00 --- /dev/null +++ b/mjinclude.sublime-snippet @@ -0,0 +1,6 @@ + + ]]> + mjinclude + MJML - MJML Include + text.mjml.basic + diff --git a/mjlocation.sublime-snippet b/mjlocation.sublime-snippet new file mode 100644 index 0000000..821cb04 --- /dev/null +++ b/mjlocation.sublime-snippet @@ -0,0 +1,7 @@ + + + adress="$1" />]]> + mjlocation + MJML - MJML Location + text.mjml.basic + diff --git a/mjraw.sublime-snippet b/mjraw.sublime-snippet new file mode 100644 index 0000000..3899f05 --- /dev/null +++ b/mjraw.sublime-snippet @@ -0,0 +1,8 @@ + + + $1 +]]> + mjraw + MJML - MJML Raw + text.mjml.basic + diff --git a/mjrow.sublime-snippet b/mjrow.sublime-snippet deleted file mode 100644 index 4f1b8b0..0000000 --- a/mjrow.sublime-snippet +++ /dev/null @@ -1,8 +0,0 @@ - - - $1 -]]> - mjrow - MJML - MJML Row - text.mjml.basic - diff --git a/mjstyle.sublime-snippet b/mjstyle.sublime-snippet new file mode 100644 index 0000000..71486ab --- /dev/null +++ b/mjstyle.sublime-snippet @@ -0,0 +1,8 @@ + + + $1 +]]> + mjstyle + MJML - MJML Style + text.mjml.basic + diff --git a/mjtitle.sublime-snippet b/mjtitle.sublime-snippet new file mode 100644 index 0000000..2d438bc --- /dev/null +++ b/mjtitle.sublime-snippet @@ -0,0 +1,8 @@ + + + $1 +]]> + mjtitle + MJML - MJML Title + text.mjml.basic + From 3f3230e7105fa442537fc60000e35657d4cda601 Mon Sep 17 00:00:00 2001 From: ngarnier Date: Fri, 21 Oct 2016 13:47:11 +0200 Subject: [PATCH 2/2] Fixing autocomplete and updating snippets --- messages/0.2.1.txt | 12 ------------ messages/0.2.2.txt | 14 -------------- messages/1.1.0.txt | 9 +++++++++ messages/install.txt | 7 ++----- 4 files changed, 11 insertions(+), 31 deletions(-) delete mode 100644 messages/0.2.1.txt delete mode 100644 messages/0.2.2.txt create mode 100644 messages/1.1.0.txt diff --git a/messages/0.2.1.txt b/messages/0.2.1.txt deleted file mode 100644 index 1a94d33..0000000 --- a/messages/0.2.1.txt +++ /dev/null @@ -1,12 +0,0 @@ -Thanks for using the Html Extened Syntax package. - -To activate Html Extended syntax, set the syntax using the Goto Anything or the View -> Syntax menu. -To set Html Extended syntax to always open html (or others) files, follow these steps: -open an html file that has a web component in it -from the menu, select: View -> Syntax -> Open all with current extension as... -> Html Extended - - ---------------- -Changes in 0.2.1 - -- fixed a bug with setting html extended to always open html files \ No newline at end of file diff --git a/messages/0.2.2.txt b/messages/0.2.2.txt deleted file mode 100644 index 07bf474..0000000 --- a/messages/0.2.2.txt +++ /dev/null @@ -1,14 +0,0 @@ -Thanks for using the Html Extened Syntax package. - -To activate Html Extended syntax, set the syntax using the Goto Anything or the View -> Syntax menu. -To set Html Extended syntax to always open html (or others) files, follow these steps: -open an html file that has a web component in it -from the menu, select: View -> Syntax -> Open all with current extension as... -> Html Extended - - ---------------- -Changes in 0.2.2 - -- fixed a bug tags that contains colons (github issue #2) -example: now this tag should be colored as expected: -with text inside \ No newline at end of file diff --git a/messages/1.1.0.txt b/messages/1.1.0.txt new file mode 100644 index 0000000..f85e8ee --- /dev/null +++ b/messages/1.1.0.txt @@ -0,0 +1,9 @@ +Thanks for using the MJML-syntax package. + +To activate MJML-syntax, set the syntax using the Goto Anything or the View -> Syntax menu. + + +--------------- +Changes in 1.1.0 + +- Added missing snippets to match MJML 3.0.0. Thanks to @arthurkatz for his contribution. diff --git a/messages/install.txt b/messages/install.txt index 0d283fc..8f882ea 100644 --- a/messages/install.txt +++ b/messages/install.txt @@ -1,6 +1,3 @@ -Thanks for using the Html Extened Syntax package. +Thanks for using the MJML-syntax package. -To activate Html Extended syntax, set the syntax using the Goto Anything or the View -> Syntax menu. -To set Html Extended syntax to always open html (or others) files, follow these steps: -open an html file that has a web component in it -from the menu, select: View -> Syntax -> Open all with current extension as... -> Html Extended \ No newline at end of file +To activate MJML-syntax, set the syntax using the Goto Anything or the View -> Syntax menu.