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

PHP PHP Basics Unit Converter Arithmetic Operators

how can i : copy paste code on the workspace & also copy paste code on the console ?

what are the short codes for that ? thanks

Tommer Haugland
Tommer Haugland
Courses Plus Student 4,423 Points

You simply can't from my understanding, what you can do is to write for example "php numbers.php" and execute the code. Then simply press the "UP" arrow to have the line appear again in the console.

Hope it helps!

1 Answer

Jack van Galen
Jack van Galen
6,095 Points

You can copy paste highlighted code in the file by using ctrl + c (for copy) and ctrl + v (for pasting) code. You can not paste code inside the console. The console is purely for executing your files in this scenario