Giter Site home page Giter Site logo

sublime_live's Introduction

Sublime Text 3 : sublime_live

This is a Sublime Text 3 module to give plugin developers the ability to make areas of pages clickable or live.

It works by hanging what we refer to as a sublime_live.LiveView of a sublime.View, this is used to extend sublime.View's functionality. We also introduce the concept of live regions, which are sublime_live.LiveRegion. These are wrappers of sublime.Region that when added to a LiveView allow a developer to hang functionality off areas of a view. Because sublime_live.LiveRegion's are wrappers of sublime.Region's a developer can also give a LiveRegion different background, foreground and caret colors to the rest of the page, as they can already do with sublime.Regions when adding then to a sublime.View.

For some simple examples of what is possible see: sublime_live_console sublime_live_color_schemes sublime_live_tictactoe

I see this really as providing a developer with the ability to write plugins that maybe provide interactive access to API's or other functionality that users desire.

Install:

On it's own, this module does nothing. You need to place it in your plugin or somewhere where your plugin can import and use it.

Note

One important note:
    You must import the LiveEventListener for clicks to be heard and acted upon.
        from .sublime_live import UpdateLiveViewCommand, LiveEventListener

Issues / Suggestions:

Send on any suggestions or issues.

Copyright and license

Copyright 2013 David Higgins

MIT License

sublime_live's People

Contributors

sligodave avatar

Watchers

JT5D avatar James Cloos avatar  avatar

Forkers

kekssw

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.