Line 25: | Line 25: | ||
</pre> | </pre> | ||
+ | == Spell Checking == | ||
+ | |||
+ | Add this to "settings -> user" to enable spell checking for English [https://www.sublimetext.com/docs/2/spell_checking.html] | ||
+ | |||
+ | <pre> | ||
+ | { | ||
+ | "spell_check": true, | ||
+ | "dictionary": "Packages/Language - English/en_US.dic" | ||
+ | } | ||
+ | </pre> | ||
[[Category:Snippets]] | [[Category:Snippets]] |
Go to "preferences -> key binding (user)"
[ { "keys": ["alt+shift+m"], "command": "insert_snippet", "args": { "name": "Packages/mediawiki/math-tag.sublime-snippet" } } ]
Create `Packages/mediawiki/math-tag.sublime-snippet`:
<snippet> <content><![CDATA[<math>${2:$SELECTION}</math>]]></content> <scope>math</scope> <description>Math Tag</description> </snippet>
You don't need to create an XML file, and can pass arguments directly to snippets: [1]
[ {"keys": ["alt+q"], "command": "insert_snippet", "args": {"contents": "<code>${0:$TM_SELECTED_TEXT}</code>"}}, {"keys": ["alt+w"], "command": "insert_snippet", "args": {"contents": "<pre>${0:$TM_SELECTED_TEXT}</pre>"}} ]
Add this to "settings -> user" to enable spell checking for English [2]
{ "spell_check": true, "dictionary": "Packages/Language - English/en_US.dic" }