Hey,
is it possible to preview/open my html/css code from Sublime with an shortcut in a Browser?
{
"cmd": ["C:\\Users\\Andrew\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe", "$file"]
}{
"cmd": ["/Applications/Safari.app/Contents/MacOS/Safari", "$file"]
}
2012-02-09 16:34:06.860 Safari[64689:707] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.{
"cmd": ["open", "$file"],
"selector": "text.html, source.html, text.xml",
}rchl wrote:Might be better to use "open" command on Mac which should open file in the default browser.
And also add "selector" so that one doesn't have to change to proper build system manually.
- Code: Select all
{
"cmd": ["open", "$file"],
"selector": "text.html, source.html, text.xml",
}
{
"cmd": ["/Applications/Safari.app", "$file"],
"selector": "text.html, source.html, text.xml"
}
"/Applications/Safari.app/Contents/MacOS/Safari""cmd": ["open", "-a", "Safari", "$file"]svenax wrote:As for OS X, you really want
- Code: Select all
"cmd": ["open", "-a", "Safari", "$file"]
to force Safari to open the file. You can of course substitute Google Chrome or Firefox if you want.
"cmd": ["open", "-a", "Safari", "$file"]Users browsing this forum: No registered users and 16 guests