Files
ChocolateyPackages/EthanBrown.SublimeText2.EditorPackages/tools/PackageCache/StringEncode/README.md
Iristyle 5ed4214a22 feat(ST2.EditorPackages): bump up all packages
- Refresh PackageCache with latest versions of everything
2013-09-16 22:29:05 -04:00

62 lines
1.7 KiB
Markdown

StringEncode
============
Converts characters from one "encoding" to another using a transformation (think HTML entities, not character encodings).
Installation
------------
1. Using Package Control, install "StringEncode"
Or:
1. 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/
2. clone this repo
3. Install keymaps for the commands (see Example.sublime-keymap for my preferred keys)
### Sublime Text 2
1. Open the Sublime Text 2 Packages folder
2. clone this repo, but use the `st2` branch
git clone -b st2 git@github.com:colinta/SublimeStringEncode
Commands
--------
`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
`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
`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
TODO
----
`xml_entitize`: Converts characters to their XML entity
`xml_deentitize`: Converts XML entities to a character