So I’ve been having a struggle for a while since starting this blog. I was looking at add a shortcut to the Visual Editor within WordPress for a code box instead of going to the Text/HTML editor and then adding the [code] tags manually. After scrapping that idea… I found you can actually use a shortcut on your keyboard to achieve this!
Start typing (or paste) the code you wish you have within the box. Highlight all the code/text and press
ALT + SHIFT + X
This will automatically wrap the code you’ve highlighted in a [code] box.