non_ascii_string <--> Unicode_escape
note: Line Ending and Tab are ignored.
e.g.
中华 <!-- <=> 中华 -->
中華 <!-- <=> 中華 -->
font-family: '\5b8b\4f53'; // <=> font-family:'宋体'
var a = '\u6c49\u5b57'; // <=> a = '汉字';
var b = '\u{0001d306}' // <=> b = '𝌆';
##Installation
-
Package Control:
search and install
Unicode Escape
-
Custom install:
- Download from here.
- unzip and copy the package to sublime packages fold.
Windows and Linux can find at sublime text menu
Preferences
>Browse Packages...
Mac os x asSublime Text
>Preferences
>Browse Packages...
##Usage
Windows:
[
{"keys": ["ctrl+f11"], "command": "escape"},
{"keys": ["ctrl+f12"], "command": "unescape"}
]
Linux/Mac os x:
[
{"keys": ["ctrl+escape"], "command": "escape"},
{"keys": ["ctrl+shift+escape"], "command": "unescape"}
]