GithubHelp home page GithubHelp logo

tiny-html-replacements's Introduction

Tiny HTML Replacements

Tiny HTML Replacements is a small but useful HTML plugin for Sublime Text 2 editor. If you like it you can donate to the author via PayPal.

It allows you surround selected HTML code with the tag customized in the Key Bindings config file.

Example

Suppose you have an HTML code and you want to insert a link (or make it bold). Select the text you want to link, press Ctrl+q (can be configured, see below) and your text now is surrounded by <a href="#"></a>!

Now Tiny HTML Replacements supports following tags:

  • <a href="#">
  • <strong>
  • <li>
  • <p>
  • <h2 class="sectionHeading">
  • <h3>
  • You can escape non-HTML characters
  • You can add custom command! Just put the following args to the Key Bindings file:
	"args": {
		"c": "custom", 
		"start": "``", 
		"end": "``"
	}

Updates

If you have and ideas how to make the plugin better, feel free to create an issue!

  • (18 Dec 2011) Now you can escape non-HTML characters (like < or >) with escape_html command (see config in How to setup section below).

  • (18 Dec 2011) First commit, some simple tags supported!

Installation

Go to your Sublime Text 2 Packages directory:

Windows: %APPDATA%\Sublime Text 2\Packages\

Mac: ~/Library/Application Support/Sublime Text 2/Packages/	

and clone the repository here:

git clone git://github.com/rozboris/Tiny-Html-Replacements.git "Tiny HTML Replacements"

How to setup

  • Open Preferences โ†’ Key Bindings โ€” User in Sublime Text 2 and add the following code:
	{ "keys": ["ctrl+q"], "command": "tiny_html_replacements", "args": {"c": "li"}},
	{ "keys": ["ctrl+1"], "command": "tiny_html_replacements", "args": {"c": "p"}},
	{ "keys": ["ctrl+2"], "command": "tiny_html_replacements", "args": {"c": "h2_sh"}},
	{ "keys": ["ctrl+3"], "command": "tiny_html_replacements", "args": {"c": "h3"}},
	{ "keys": ["ctrl+5"], "command": "tiny_html_replacements", "args": {"c": "custom", "start": "`
    ", "end": "
`"}}, { "keys": ["ctrl+4"], "command": "tiny_html_replacements", "args": {"c": "b"}}, { "keys": ["ctrl+6"], "command": "tiny_html_replacements", "args": {"c": "escape_html"}}

Donate

If you like Tiny HTML Replacements plugin you can donate to the author via PayPal.


tiny-html-replacements's People

Contributors

rozboris avatar

Stargazers

 avatar

Watchers

 avatar

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.