0

Okay I know I've worded the question horribly. We all know to make code visible in a box e.g:

\begin{document}

We have to shift it 4 spaces to the right so that it becomes:

\begin{document}

Is there any way to shift an entire group of text to the right instead of doing it line by line, like highlighting and then pressing the space bar, etc...

1 Answer 1

4

take a look at the line of icons above the answer box.

one of them is {} -- that indicates "code".

highlight the lines in your answer that you want presented as code, then click on the {}. done!

as noted by @JosephWright, Ctrl-K works as a shortcut after you've highlighted.

3
  • You sir/madam are my hero, (where were you two years ago when I first joined), thank you.
    – UniStuffz
    Commented Aug 22, 2017 at 13:43
  • 4
    Perhaps add that the shortcut is Ctrl-K?
    – Joseph Wright Mod
    Commented Aug 22, 2017 at 13:52
  • @JosephWright Does Ctrl-K exist? I wish I had known it before! It's extremely convenient!
    – CarLaTeX
    Commented Aug 23, 2017 at 12:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .