Converts characters from one encoding to another using a transformation (think HTML entities, not character encodings).
- Total 28K
- Win 14K
- OS X 12K
- Linux 3K
|Dec 8||Dec 7||Dec 6||Dec 5||Dec 4||Dec 3||Dec 2||Dec 1||Nov 30||Nov 29||Nov 28||Nov 27||Nov 26||Nov 25||Nov 24||Nov 23||Nov 22||Nov 21||Nov 20||Nov 19||Nov 18||Nov 17||Nov 16||Nov 15||Nov 14||Nov 13||Nov 12||Nov 11||Nov 10||Nov 9||Nov 8||Nov 7||Nov 6||Nov 5||Nov 4||Nov 3||Nov 2||Nov 1||Oct 31||Oct 30||Oct 29||Oct 28||Oct 27||Oct 26||Oct 25||Oct 24|
Encodes text. “Encode” in this context refers to HTML entities or URL encoding, not character encodings. Most of these commands work in both directions (e.g. you can encode to html entities, or from html entities).
- Html entities
- Css (e.g. unicode characters)
- Xml entities
- Json strings
- Base64 encoding
- Hash: Md5, Sha256, Sha512
- Regex escape
- SQL 'LIKE' escape
- Hexadecimal / Decimal
- Unicode Hexadecimal representation
This plugin was intended to be used with selections, but if you don't have any text selected, it will act on the entire document. This can be handy (if you're base64-encoding a file, for instance), but also have unintended consequences. For instance, you probably should not use
URL Decode on an entire text document.
You can also encode the clipboard, use the
string_encode_paste command, and you will be presented with a menu to choose the encoding, and the clipboard will be encoded and inserted.
- Using Package Control, install “StringEncode”
Open the Sublime Text Packages folder
- OS X: ~/Library/Application Support/Sublime Text 3/Packages/
- Windows: %APPDATA%/Sublime Text 3/Packages/
- Linux: ~/.Sublime Text 3/Packages/ or ~/.config/sublime-text-3/Packages
clone this repo
Install keymaps for the commands (see Example.sublime-keymap for my preferred keys)
string_encode_paste: Converts the clipboard to the desired encoding.
html_entitize: Converts characters to their HTML entity
html_deentitize: Converts HTML entities to a character
url_encode: Uses urllib.quote to escape special URL characters.
- Accepts an
old_school argument (default:
True). Setting it to
%20 instead of
+ when encoding spaces.
url_decode: Uses urllib.unquote to convert escaped URL characters
json_escape: Escapes a string and surrounds it in quotes, according to the JSON encoding.
json_unescape: Unescapes a string (include the quotes!) according to JSON encoding.
base64_encode: Uses base64 to encode into base64
base64_decode: Uses base64 to decode from base64
md5_encode: Uses sha package to create md5 hash
sha256_encode: Uses sha package to create sha256 hash
sha512_encode: Uses sha package to create sha512 hash
escape_regex: Escapes regex meta characters
escape_like: Escapes SQL-LIKE meta characters
safe_html_entitize: Converts characters to their HTML entity, but preserves HTML reserved characters
safe_html_deentitize: Converts HTML entities to a character, but preserves HTML reserved characters
xml_entitize: Converts characters to their XML entity
xml_deentitize: Converts XML entities to a character