Skip to content

Commit 37dbc30

Browse files
authored
Merge pull request #4 from mjmlio/1.1.0
More snippets
2 parents 1b4348d + 1aab148 commit 37dbc30

27 files changed

+32
-40
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# mjml-syntax
22

3-
Sublime package for the MJML syntax
3+
Sublime package for the MJML syntax to provide syntax highlight and snippets for your MJML files.
44

55
Forked from [Html-extended](https://github.com/orizens/html-extended)
66

7-
Provide syntax highlight and snippets for your MJML files!
8-
97
# Installation
108

119
The easiest way to install the MJML syntax plugin for Sublime Text is through Package Control. The plugin is available [here](https://packagecontrol.io/packages/MJML-syntax).

messages.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"install": "messages/install.txt",
3-
"0.2.2": "messages/0.2.2.txt"
4-
}
3+
"1.1.0": "messages/1.1.0.txt"
4+
}

messages/1.1.0.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ To activate MJML-syntax, set the syntax using the Goto Anything or the View -> S
77
Changes in 1.1.0
88

99
- Added missing snippets to match MJML 3.0.0. Thanks to @arthurkatz for his contribution.
10+
- Fixed autocomplete to remove the extra "<" on unwrap.

mjall.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<snippet>
2-
<content><![CDATA[<mj-all $1 />]]></content>
2+
<content><![CDATA[mj-all $1 />]]></content>
33
<tabTrigger>mjall</tabTrigger>
44
<description>MJML - MJML All</description>
55
<scope>text.mjml.basic</scope>

mjattributes.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<snippet>
2-
<content><![CDATA[<mj-attributes>
2+
<content><![CDATA[mj-attributes>
33
$1
44
</mj-attributes>]]></content>
55
<tabTrigger>mjattributes</tabTrigger>

mjbody.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<snippet>
2-
<content><![CDATA[<mj-body>
2+
<content><![CDATA[mj-body>
33
$1
44
</mj-body>]]></content>
55
<tabTrigger>mjbody</tabTrigger>

mjbutton.sublime-snippet

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<snippet>
2-
<content><![CDATA[<mj-button>
3-
$1
4-
</mj-button>]]></content>
2+
<content><![CDATA[mj-button> $1 </mj-button>]]></content>
53
<tabTrigger>mjbutton</tabTrigger>
64
<description>MJML - MJML Button</description>
75
<scope>text.mjml.basic</scope>

mjclass.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<snippet>
2-
<content><![CDATA[<mj-class name="$1" $2/>]]></content>
2+
<content><![CDATA[mj-class name="$1" $2/>]]></content>
33
<tabTrigger>mjclass</tabTrigger>
44
<description>MJML - MJML Class</description>
55
<scope>text.mjml.basic</scope>

mjcolumn.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<snippet>
2-
<content><![CDATA[<mj-column>
2+
<content><![CDATA[mj-column>
33
$1
44
</mj-column>]]></content>
55
<tabTrigger>mjcolumn</tabTrigger>

mjcontainer.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<snippet>
2-
<content><![CDATA[<mj-container>
2+
<content><![CDATA[mj-container>
33
$1
44
</mj-container>]]></content>
55
<tabTrigger>mjcontainer</tabTrigger>

0 commit comments

Comments
 (0)