The "entity-insert" extension uses an Emmet-like approach to simplifying the insertion of HTML named entities and other Unicode characters. Type a two-character code, invoke the extension, and the code is turned into the entity name or character code. For easiest use, bind the extension to a keyboard shortcut. (I'm currently using
Ctrl+E.) This release implements approximately 210 character codes.
The categories of codes currently supported include:
- General punctuation
- Arrows (experimental)
- Enclosed alphanumerics (experimental)
- Fractions, including some internally generated ones not in Unicode
- Geometric shapes (experimental)
- Selected Greek letters
- Mathematical symbols
- Roman numerals (experimental)
- Scientific symbols
- Foreign language letters
Whenever possible, the code is the first two characters of the character name. For example,
'in' will be turned into
In many cases however, such as with punctuation starting with
left for example, there are too many similar names, so only
l is used, in combination with the first character of the second word, such as
rc for the right curly brace. Another example is with superscripts and subscripts. In this case
p3 would be used for a superscript number 3.
Special letters from Spanish, French, German, and Portuguese are also supported. The first character is an easy-to-type character similar in appearance to the desired modifier and the second character is the letter itself, such as
^O which results in a
Ocirc. For a lower case
^o. The special characters are:
- ` for grave (`A -> Agrave)
- ' for acute ('i -> iacute)
- ^ for circumflex (^u -> ucirc)
- ~ for tilde (~n -> ntilde)
- : for umlaut (:o -> ouml)
- o for ring (oa -> aring)
- , for cedilla (,c -> ccedil)
- / for slash ( /O -> Oslash)
The supported inverted punctuation marks are
i?. A variety of currency characters (such as
eu), fractions (
frac23), ligatures (
aelig), and a selection of other useful symbols (
#8451 [celsius degrees]) are included.
A message is displayed if the code is not recognized.
The keycodes document lists all the codes supported.
This extension adds the
Initial release of entity-insert.