Skip to content

Commit

Permalink
Merge pull request #4 from mjmlio/1.1.0
Browse files Browse the repository at this point in the history
More snippets
  • Loading branch information
ngarnier authored Oct 21, 2016
2 parents 1b4348d + 1aab148 commit 37dbc30
Show file tree
Hide file tree
Showing 27 changed files with 32 additions and 40 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# mjml-syntax

Sublime package for the MJML syntax
Sublime package for the MJML syntax to provide syntax highlight and snippets for your MJML files.

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

Provide syntax highlight and snippets for your MJML files!

# Installation

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).
Expand Down
4 changes: 2 additions & 2 deletions messages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"install": "messages/install.txt",
"0.2.2": "messages/0.2.2.txt"
}
"1.1.0": "messages/1.1.0.txt"
}
1 change: 1 addition & 0 deletions messages/1.1.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ To activate MJML-syntax, set the syntax using the Goto Anything or the View -> S
Changes in 1.1.0

- Added missing snippets to match MJML 3.0.0. Thanks to @arthurkatz for his contribution.
- Fixed autocomplete to remove the extra "<" on unwrap.
2 changes: 1 addition & 1 deletion mjall.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[<mj-all $1 />]]></content>
<content><![CDATA[mj-all $1 />]]></content>
<tabTrigger>mjall</tabTrigger>
<description>MJML - MJML All</description>
<scope>text.mjml.basic</scope>
Expand Down
2 changes: 1 addition & 1 deletion mjattributes.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[<mj-attributes>
<content><![CDATA[mj-attributes>
$1
</mj-attributes>]]></content>
<tabTrigger>mjattributes</tabTrigger>
Expand Down
2 changes: 1 addition & 1 deletion mjbody.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[<mj-body>
<content><![CDATA[mj-body>
$1
</mj-body>]]></content>
<tabTrigger>mjbody</tabTrigger>
Expand Down
4 changes: 1 addition & 3 deletions mjbutton.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<snippet>
<content><![CDATA[<mj-button>
$1
</mj-button>]]></content>
<content><![CDATA[mj-button> $1 </mj-button>]]></content>
<tabTrigger>mjbutton</tabTrigger>
<description>MJML - MJML Button</description>
<scope>text.mjml.basic</scope>
Expand Down
2 changes: 1 addition & 1 deletion mjclass.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[<mj-class name="$1" $2/>]]></content>
<content><![CDATA[mj-class name="$1" $2/>]]></content>
<tabTrigger>mjclass</tabTrigger>
<description>MJML - MJML Class</description>
<scope>text.mjml.basic</scope>
Expand Down
2 changes: 1 addition & 1 deletion mjcolumn.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[<mj-column>
<content><![CDATA[mj-column>
$1
</mj-column>]]></content>
<tabTrigger>mjcolumn</tabTrigger>
Expand Down
2 changes: 1 addition & 1 deletion mjcontainer.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[<mj-container>
<content><![CDATA[mj-container>
$1
</mj-container>]]></content>
<tabTrigger>mjcontainer</tabTrigger>
Expand Down
2 changes: 1 addition & 1 deletion mjdivider.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[<mj-divider $1 />]]></content>
<content><![CDATA[mj-divider $1 />]]></content>
<tabTrigger>mjdivider</tabTrigger>
<description>MJML - MJML Divider</description>
<scope>text.mjml.basic</scope>
Expand Down
2 changes: 1 addition & 1 deletion mjfont.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[<mj-font name="$1" href="$2" />]]></content>
<content><![CDATA[mj-font name="$1" href="$2" />]]></content>
<tabTrigger>mjfont</tabTrigger>
<description>MJML - MJML Font</description>
<scope>text.mjml.basic</scope>
Expand Down
2 changes: 1 addition & 1 deletion mjgroup.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[<mj-group>
<content><![CDATA[mj-group>
$1
</mj-group>]]></content>
<tabTrigger>mjgroup</tabTrigger>
Expand Down
2 changes: 1 addition & 1 deletion mjhead.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[<mj-head>
<content><![CDATA[mj-head>
$1
</mj-head>]]></content>
<tabTrigger>mjhead</tabTrigger>
Expand Down
10 changes: 5 additions & 5 deletions mjhero.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<snippet>
<content><![CDATA[<mj-hero>
<mj-hero-content>
$1
</mj-hero-content>
</mj-hero>]]></content>
<content><![CDATA[mj-hero>
<mj-hero-content>
$1
</mj-hero-content>
</mj-hero>]]></content>
<tabTrigger>mjhero</tabTrigger>
<description>MJML - MJML Hero</description>
<scope>text.mjml.basic</scope>
Expand Down
2 changes: 1 addition & 1 deletion mjhtml.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[<mj-html>
<content><![CDATA[mj-html>
$1
</mj-html>]]></content>
<tabTrigger>mjhtml</tabTrigger>
Expand Down
2 changes: 1 addition & 1 deletion mjimage.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[<mj-image src="$1" />]]></content>
<content><![CDATA[mj-image src="$1" />]]></content>
<tabTrigger>mjimage</tabTrigger>
<description>MJML - MJML Image</description>
<scope>text.mjml.basic</scope>
Expand Down
2 changes: 1 addition & 1 deletion mjinclude.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[<mj-include path="$1" />]]></content>
<content><![CDATA[mj-include path="$1" />]]></content>
<tabTrigger>mjinclude</tabTrigger>
<description>MJML - MJML Include</description>
<scope>text.mjml.basic</scope>
Expand Down
2 changes: 1 addition & 1 deletion mjinvoice.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[<mj-invoice>
<content><![CDATA[mj-invoice>
$1
</mj-invoice>]]></content>
<tabTrigger>mjinvoice</tabTrigger>
Expand Down
3 changes: 1 addition & 2 deletions mjlocation.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<snippet>
<content><![CDATA[<mj-location>
adress="$1" />]]></content>
<content><![CDATA[mj-location address="$1" />]]></content>
<tabTrigger>mjlocation</tabTrigger>
<description>MJML - MJML Location</description>
<scope>text.mjml.basic</scope>
Expand Down
2 changes: 1 addition & 1 deletion mjraw.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[<mj-raw>
<content><![CDATA[mj-raw>
$1
</mj-raw>]]></content>
<tabTrigger>mjraw</tabTrigger>
Expand Down
2 changes: 1 addition & 1 deletion mjsection.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[<mj-section>
<content><![CDATA[mj-section>
$1
</mj-section>]]></content>
<tabTrigger>mjsection</tabTrigger>
Expand Down
4 changes: 1 addition & 3 deletions mjsocial.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<snippet>
<content><![CDATA[<mj-social>
$1
</mj-social>]]></content>
<content><![CDATA[mj-social $1/>]]></content>
<tabTrigger>mjsocial</tabTrigger>
<description>MJML - MJML Social</description>
<scope>text.mjml.basic</scope>
Expand Down
2 changes: 1 addition & 1 deletion mjstyle.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[<mj-style>
<content><![CDATA[mj-style>
$1
</mj-style>]]></content>
<tabTrigger>mjstyle</tabTrigger>
Expand Down
2 changes: 1 addition & 1 deletion mjtable.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[<mj-table>
<content><![CDATA[mj-table>
$1
</mj-table>]]></content>
<tabTrigger>mjtable</tabTrigger>
Expand Down
2 changes: 1 addition & 1 deletion mjtext.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[<mj-text>
<content><![CDATA[mj-text>
$1
</mj-text>]]></content>
<tabTrigger>mjtext</tabTrigger>
Expand Down
4 changes: 1 addition & 3 deletions mjtitle.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<snippet>
<content><![CDATA[<mj-title>
$1
</mj-title>]]></content>
<content><![CDATA[mj-title> $1 </mj-title>]]></content>
<tabTrigger>mjtitle</tabTrigger>
<description>MJML - MJML Title</description>
<scope>text.mjml.basic</scope>
Expand Down

0 comments on commit 37dbc30

Please sign in to comment.