Currently, LiveStyle works as a plugin for Google Chrome, Safari and Sublime Text.
You can install directly from Package Control.
- Install Package Control first.
- When installed, open Command Palette in ST editor and pick
Package Control: Install Packagecommand.
- Find and install
When installed, LiveStyle will automatically download require PyV8 extension. If you experience issues with automatic PyV8 installation, try to install it manually.
NB: if you have Emmet or TernJS extensions installed, make sure you have the most recent versions since they contain updates vital for LiveStyle extension.
You can install LiveStyle directly from Chrome Webstore. When installed, you should see LiveStyle panel in DevTools:
Unfortunately, Safari doesn’t provide API to extend Web Inspector so you have to hack it. The LiveStyle extension is developed for latest Webkit Nightly and upcoming OS X Mavericks’ Safari.
First, you have to download latest WebKit Nightly and install it. Now you have two options to install extension: using automatic installer, available in Sublime Text extension and manual installation.
In Sublime Text (with LiveStyle extension installed, of course), pick
Tools > Install LiveStyle for WebKit extension menu item or run
LiveStyle: Install WebKit extension command from Command Palette.
If WebKit extension was installed correctly, you’ll see message asking you to restart WebKit. If it fails, try to use manual installation.
- Go to
/Applications/WebKit.app/Contents/Frameworks/<YOUR OSX VERSION>/WebInspectorUI.framework/Resourcesfolder, substitute
<YOUR OSX VERSION>with your actual OSX version, e.g.
10.8. You can get there by right-clicking on WebKit app and picking
Show Package Contentsmenu item.
- Download LiveStyle extension and unpack its contents into
livestyle(this name is important) subfolder of your current folder, e.g.
- Open Web Inspectors’
Main.htmlfile in text editor.
- At the bottom of the
<head>section, right before
WebInspector.loaded();script, attach LiveStyle extension:
- Restart WebKit and open Web Inspector.
If everything installed correctly, you should see Emmet icon on the toolbar:
Note that due to a hacky nature of this extension and fast WebKit Nightly update cycle (updated every day) it can break any time. If you’re happy with current WebKit Nightly build, I recommend you to skip all WebKit updates. Otherwise, you have to repeat all installation steps after each update.
Learn how to use LiveStyle.