How can I insert a lightning bolt symbol for Google's AMP page format?
Asked Answered
R

4

6

If you visit the Accelerated Mobile Pages HTML specification, you will see that the <html> tag has a lightning bolt before the closing bracket:

<html ⚡>

Is there a keyboard shortcut I can use or configure to insert this?

Reams answered 27/6, 2017 at 19:0 Comment(0)
N
3

While the docs said you could just use <html amp>, I'm assuming you asked this question cause you'd rather use the symbol. In that case, the easiest route would be to highlight and copy the symbol and then paste it into your code. The other option I know of is to use an Alt Code to type the symbol into your code. The alt code for the lightning symbol is Alt + 26A1 Hold alt and type the code into the number pad on your keyboard and it should work.

Ninetieth answered 27/6, 2017 at 19:16 Comment(1)
for me it print ☺in windows - visual stuidoAmor
B
2

It seems there is/was no easy way to type alt codes on Mac (if i hold option and type 26A1 I get this: ™ˆ̄¡.

It seems MacOS has a nice emoji shortcut (Ctrl + Cmd + Space) in which you can find and select the lightning bolt. https://support.apple.com/en-gw/ht201586

Works for me in a text editor.

Boxhaul answered 25/5, 2018 at 14:18 Comment(1)
From my understanding, you have to have a numpad (rather than the top numerical keys) for that code to work.Reams
B
1

In newer versions of Windows 10, press win-. (that is, the windows key and the period key) to open the emoji picker. Then, start typing lightning bolt and choose the ⚡ by pressing enter. (Technically, the symbol is called high voltage so if you type high v and press enter the ⚡ emoji should appear)

Boeotia answered 25/6, 2020 at 15:4 Comment(0)
D
1

The 26A1 is an Alt + X code. To use only an ALT key it is ALT + 9889.

Doublespace answered 16/11, 2020 at 13:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.