Giter Site home page Giter Site logo

sublime-svg-snippets's Introduction

SVG Snippets for Sublime Text 2/3

A collection of SVG snippets for Sublime 2 and 3 (Time Saver!)

HOW TO INSTALL

Browse to the following path on your UNIX system. Make sure you replace the YOUR_USERNAME placeholder with your system user. If you use Sublime 2 just change it in the path.

cd /Users/YOUR_USERNAME/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/

If the folder 'HTML' or 'SVG' doesn't exisit inside of this folder, create it:

mkdir HTML

or

mkdir SVG

I put my SVG snippets in HTML because I like to access them within an HTML file.

Enter this folder:
```bash
cd HTML

I recommend to checkout the repository directly in this folder:

git clone [email protected]:roundrobin/sublime-svg-snippets.git .

Now you will see inside of the ./HTML folder, a bunch of .sublime-snippet files. Feel free to add new ones.

Restart Sublime.

HOW TO USE

After you've installed the snippets, you can trigger the insertion of a snippet by typing in one of the follwing commands inside of a .js file and pressing the TAB key afterwards.

Note:

All snippets have integrated jump points. Just use tab again to jump to the next one.

The list of available snippets:

svg + TAB     ==> <svg width="100%" height="100%" viewBox="0 0 200 200" ......
circle + TAB  ==> <circle cx="20px" cy="20px" r="20px" fill="#64CDAC"></circle>
rect + TAB    ==> <rect x="0" y="0" width="50px" height="50px" fill="#BBCD71"></rect>     
path + TAB    ==> <path ....
line + TAB    ==> <line ....
line + TAB    ==> <polyline ....
group + TAB   ==> <g ....
text + TAB    ==> <text ....
tspan + TAB   ==> <tspan ....

  

sublime-svg-snippets's People

Contributors

roundrobin avatar

Stargazers

Julien Langlois avatar Santiago Castro avatar

Watchers

 avatar James Cloos avatar Santiago Castro avatar

sublime-svg-snippets's Issues

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.