Skip to content

Instantly share code, notes, and snippets.

View sligodave's full-sized avatar

David Higgins sligodave

View GitHub Profile
@sligodave
sligodave / Default (Linux).sublime-keymap
Last active December 23, 2015 00:28
A simple sublime text plugin to change the syntax of every opened or new file to YAML. Drop the file "SyntaxToYAML.py" into your Sublime Text "Packages/User/" directory. Add the keymaps to the files with the same name in your "Packages/User/" directory too. DON'T overwrite the "Default (XXX).sublime-keymap" files that are already there. Add to t…
[
// Change the syntax of the current file to YAML
{ "keys": ["ctrl+alt+y"], "command": "change_syntax", "args": {"syntax": "Packages/YAML/YAML.tmLanguage"}}
]
var d = document.createElement('div');
d.innerHTML = '\
<style>\
*:not(.icon):not(i), *:not(.icon):not(i):after, *:not(.icon):not(i):before {\
box-shadow: none !important;\
text-shadow: none !important;\
background-image: none !important;\
border-radius: 0 !important;\
}\
*:not(.icon):not(i) {\
import sublime
import sublime_plugin
import re
import json
from xml.dom.minidom import *
from os.path import basename
from copy import copy
from xml.sax.saxutils import escape, unescape