Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
LiveReload plugin for SublimeText
branch: devel

Merge pull request #84 from OlivierBlanvillain/patch-1

Improve #Using by changing a few words and splitting the snippet in two lines.
latest commit 169c8212a5
Janez Troha authored
Failed to load latest commit information.
docs Merge branch 'sm3' into devel
messages Merge branch 'sm3' into devel
server Merge branch 'sm3' into devel
snippets Refactoring, custom settings class(fix win thread-safty issue)
test Fixes many bugs for SM3
web Merge branch 'sm3' into devel
.gitignore Add docs, compass plugin from @Grafikart closes #39
.travis.yml Fixes many bugs for SM3
CoffeescriptPlugin.py Merge branch 'sm3' into devel
CommandAPI.py Fixes many bugs for SM3
CompassPlugin.py Fix overriding default settings of Compass Plugin
Default.sublime-commands Fixes many bugs for SM3
LESSPlugin.py Starting coffeescript and LESS plugins
LiveReload.py Fixes settings loading for SM3, compass plugin overrides see #43
LiveReload.sublime-settings Fixes many bugs for SM3
Main.sublime-menu Fix plugin API add on_receive
Makefile Fixes many bugs for SM3
README.md Improve #Using by changing a few words and splitting the snippet in t…
SimpleReloadCallback.py add python3 support
SimpleReloadPlugin.py Refactoring, custom settings class(fix win thread-safty issue)
SimpleReloadPluginDelay.py Simple delay refresh plugin
SimpleWSCallback.py fix modified source
__init__.py add python3 support
lr.sublime-project Fixes many bugs for SM3
messages.json Support for new version of protocol (only reload command)
pylint.rc Fixes many bugs for SM3
requirements.txt Fixes many bugs for SM3

README.md

Build Status Fattrme Gittip

LiveReload for Sublime Text 3

A web browser page reloading plugin for the Sublime Text 3 editor.

Installing

Open Terminal and

Linux users

cd ~/.config/sublime-text-3/Packages
rm -rf LiveReload
git clone -b devel https://github.com/dz0ny/LiveReload-sublimetext2.git LiveReload

OSX users

cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
rm -rf LiveReload
git clone -b devel https://github.com/dz0ny/LiveReload-sublimetext2.git LiveReload

Using

Enable the desired plug-ins via Command Palette (Ctrl+Shift+P) and add livereload.js to your html document:

<script>document.write('<script src="http://' + (location.host || 'localhost')
.split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>

Alternatively you can use one of the browser extensions listed here: http://go.livereload.com/extensions.

Available plug-ins:

  • Compass Preprocessor, compiles .scss, .sass and refreshes page when file is compiled
  • Less Preprocessor, compiles .less and refreshes page when file is compiled
  • CoffeeScript Preprocessor, compiles .coffee and refreshes page when file is compiled
  • Simple Reload, refresh page when file is saved
  • Simple Reload with delay(400ms), wait 400ms then refresh page, when file is saved

Examples

  • Simple Reload from http GET request, reloads page on visit to http://localhost:35729/callback/simplereloadplugincallback/on_post_compile
  • Send content on change, sends file content to browser console

Plug-in api

https://livereload-for-sublime-text.readthedocs.org/en/latest/

Something went wrong with that request. Please try again.