fregante / GhostText

👻 Use your text editor to write in your browser. Everything you type in the editor will be instantly updated in the browser (and vice versa).
https://GhostText.fregante.com
MIT License
3.28k stars 117 forks source link

When editing contentEditable, set the Sublime syntax to HTML #82

Closed Aminadav closed 7 years ago

Aminadav commented 7 years ago

When editing HTML (e.g. Gmail compose), I want to highlight the HTML tags in Sublime.

fregante commented 7 years ago

In Sublime, Preferences -> Package Settings -> GhostText -> Settings (User)

{
    "host_to_syntax": {
        "mail.google.com": "HTML.tmLanguage",
        "inbox.google.com": "HTML.tmLanguage"
    }
}