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

WordPress WordPress Theme Development Finishing Your WordPress Theme Adding Shortcodes to Your Theme

shareyourpeace
shareyourpeace
3,244 Points

How do you copy raw html in chromeDevTools?

Time :30 in the video.

I tried he normal ways and could not do it ?

Thanks.

4 Answers

More than one line? Click again and select edit as HTML. This will let you select all the lines you want to copy.

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

The way I am able to accomplish that is to left-click on the starting line of code and while holding the button down move through the HTML to the last/first line I am interested in copying. Then (on a PC) I do a CTRL-C.

Ken

shareyourpeace
shareyourpeace
3,244 Points

Thanks. I am on a Mac.
Press is a left click and a drop down let's me select the current line of code. Still working out more than one line.

Thanks,

Hi, I saw the video! Go to your browser, inspect the element, right click or command click on mac and select copy. Then paste the element in your WordPress Page. This is how you do it but its not showing up in the video. You should also check this: http://anti-code.com/devtools-cheatsheet/

shareyourpeace
shareyourpeace
3,244 Points

Hi. Yes. I have done as you suggested but this only allows me to select the One Line of code.

I cannot find the keystroke combination to select more than the one line.

Oh. And than you for that cheatsheet !