Some issues with the new Stacks Editor's code block usage:
Had to make it a GIF to upload here but the video is supposed to stop when I press the discard button and click the off-screen confirm box.
Issues:
- How do you exit the code block after entering? I have tried the ↓ key, pressing Enter multiple times, and pressing the code block button (Ctrl + M).
- How do you add the lang-* part to the code block?
- Two workarounds are shown for both issues.
- Pressed Enter multiple times, then pressed ↑ until I got to the top, then typed
```
(auto converts to code block, you can use Ctrl + M or the button), my lang-* prefix, my code, and then```
again. Pressed ↓ multiple times to get to the bottom again, typed out adfsasdfafsdasdf, deleted the extra newlines, and replaced adfsasdfafsdasdf with the real text. - The other workaround I found is to go in markdown mode, and type what you want that way.
- Pressed Enter multiple times, then pressed ↑ until I got to the top, then typed
It is very annoying when I am trying to type out answers to switch modes often.