Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Jason Marlin
Jason Marlin
1,166 Points

Could I get some more clarification on how to indent multiple lines of markup?

In the video the instructor says you can do this (and then demonstrates) by placing the cursor and certain point, then pressing shift, then scrolling to the top point you want to start in indent I suppose and clicking to select all of the lines you wish to be indented. It seems after everything has been selected, you must press ctrl + shift + ] i believe to get it to indent. I tried this and nothing happens. I've tried various combinations of similar button presses as well but I can't get any result typically either nothing happens or else all my markup is deleted.... :(

Can someone clarify what the exact sequence of button presses is? Like perhaps some part of this sequence is supposed to be simultaneous or perhaps not... I can't get this to work

2 Answers

try using ctrl + tab.

Jason Marlin
Jason Marlin
1,166 Points

I must be doing something super dumb none of these suggestions work. Typically the document doesn't respond at all, simply nothing happens. But on certain combinations it deletes all of my highlighted text... Do I have to be using a particular text editor? Like something built specifically for markup? Will notepad not work?

Hi sorry got it wrong I meant only use the tab element. Ctrl + tab or ctrl + shift + tab wont work. Maybe they do in some other text editors but here its like in word you just use tab. And if you want to move the text back to where it was meaning undent it use shift + tab. This works for me hopefully it does for you too :)

Carlos Zuluaga
Carlos Zuluaga
21,184 Points

It depends on your keyboard distribution. Try using the following combination of shortcuts:

  • Ctrl + Shift + Tab
  • Ctrl + Shift + ]
  • Ctrl + Shift + ?
  • Ctrl + Shift + ยด (Spanish)
  • Ctrl + Shift + ยก or ยฟ (Spanish)
Jason Marlin
Jason Marlin
1,166 Points

I tried all of these to no avail. I must be doing something super dumb none of these suggestions work. Typically the document doesn't respond at all, simply nothing happens. But on certain combinations it deletes all of my highlighted text... Do I have to be using a particular text editor? Like something built specifically for markup? Will notepad not work?

Carlos Zuluaga
Carlos Zuluaga
21,184 Points

You should try the previous keystrokes without Shift.