QuoteHTML
Quote HTML snippet as a string.
Details
Installs
- Total 7K
- Win 5K
- Mac 1K
- Linux 498
| Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
QuoteHTML for Sublime Text
Description
Quote HTML snippet as a string.
Example:
Original HTML:
<div class="demo"> <ol> <li>1</li> <li><a href='#'>2</a></li> <li><a href="#">3</a></li> </ol> </div>
Quote HTML with Single Quotes:
'<div class="demo">' + '<ol>' + '<li>1</li>' + '<li><a href=\'#\'>2</a></li>' + '<li><a href="#">3</a></li>' + '</ol>' + '</div>';
Quote HTML with Double Quotes:
"<div class=\"demo\">" + "<ol>" + "<li>1</li>" + "<li><a href='#'>2</a></li>" + "<li><a href=\"#\">3</a></li>" + "</ol>" + "</div>";
Quote HTML with Single Quotes include Space:
'<div class="demo">' + ' <ol>' + ' <li>1</li>' + ' <li><a href=\'#\'>2</a></li>' + ' <li><a href="#">3</a></li>' + ' </ol>' + '</div>';
Quote HTML with Double Quotes include Space:
"<div class=\"demo\">" + " <ol>" + " <li>1</li>" + " <li><a href='#'>2</a></li>" + " <li><a href=\"#\">3</a></li>" + " </ol>" + "</div>";
Quote HTML as Array with Single Quotes:
[ '<div class="demo">', '<ol>', '<li>1</li>', '<li><a href=\'#\'>2</a></li>', '<li><a href="#">3</a></li>', '</ol>', '</div>' ].join("");
Quote HTML as Array with Double Quotes:
[ "<div class=\"demo\">", "<ol>", "<li>1</li>", "<li><a href='#'>2</a></li>", "<li><a href=\"#\">3</a></li>", "</ol>", "</div>" ].join("");
Quote HTML as Array with Single Quotes include Space:
[ '<div class="demo">', ' <ol>', ' <li>1</li>', ' <li><a href=\'#\'>2</a></li>', ' <li><a href="#">3</a></li>', ' </ol>', '</div>' ].join("");
Quote HTML as Array with Double Quotes include Space:
[ "<div class=\"demo\">", " <ol>", " <li>1</li>", " <li><a href='#'>2</a></li>", " <li><a href=\"#\">3</a></li>", " </ol>", "</div>" ].join("");
Installation
OPTION 1 - with Package Control (recommended)
The easiest way to install this package is through Package Control.
Install Package Control, follow instructions on the website.
Open command panel:
Ctrl+Shift+P(Linux/Windows) orCmd+Shift+P(OS X) and select Package Control: Install Package.When packages list appears, type
QuoteHTMLand select it.
OPTION 2 - with Git
Clone the repository in your Sublime Text “Packages” directory:
git clone git://github.com/mutian/Sublime-Quote-HTML.git "QuoteHTML"
You can find your “Packages” inside the following directories:
OS X:
~/Library/Application Support/Sublime Text 2/Packages/Windows:
%APPDATA%/Sublime Text 2/Packages/Linux:
~/.Sublime Text 2/Packages/
OPTION 3 - without Git
Download the latest source zip from Github and extract it into a new folder named QuoteHTML in your Sublime Text “Packages” folder.
Usage
Select the code, or place cursor in the document, and execute commands in one of the following ways:
Edit Menu: Edit > Quote HTML.
Command Panel: Open command panel:
Ctrl+Shift+P(Linux/Windows) orCmd+Shift+P(OS X) and select Quote HTML.
Shortcuts
By default QuoteHTML provides no keyboard shortcuts to avoid conflicts, but you can view the included Example.sublime-keymaps file to get an idea how to set up your own.
Author
Created by Mutian (http://mutian.wang).
For more info, you can send email to me: mutian(a)me.com!