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

JavaScript Introduction to Programming Basics Variables

Trying to get this to work on Dreamweaver.

I have 2 files: index.html and script.js.

They're loaded on my program, but I don't know how to see the commands displayed without the code as normal text. This is whats on my script.js

console.log("Hello from myscript.js"); console.log("Hello again!");

My index.html has this:

<!DOCTYPE html>
<html lang="en"> <head> <title>Introduction to Programming</title> <style> html { background: #FAFAFA; font-family: sans-serif; } </style> <script type="text/index.html" src="myscript.js"></script> </head> <body> <h1>Introduction to Programming</h1> <h2>with Javascript</h2> </body> </html>

How do I see the commands on the script.js on a separate screen as plain text? I know hes using chrome, but I'm used to my editor in Adobe. Plus I did try it on Chrome, and how he has a side bar for the html on there is beyond me because I don't know how he put that their. But if it is possible to try and fix the problem with Dreamweaver that would be great :)

3 Answers

I presume that you're talking about the console window, maybe? If so, it's very easy to access (watch the introductory video) or just press 'Control + Shift + J' while having the html page opened up in Chrome.

I doubt this is possible in Dreamweaver since it's basically meant as a designer tool not a programming one (browsers are meant for that). I'd advice against Dreamweaver especially since you're just starting with the introduction series. It's just much more elegant and efficient to use a text editor like Sublime Text or TextEdit to do all the programming on.

David Curtis
David Curtis
11,301 Points

According to Adobe (post is from 2011), the answer is no:

https://forums.adobe.com/thread/913504

Paul Brennan
Paul Brennan
8,809 Points

If Dw's not playing ball, I'd recommend Komodo Edit (the free one) as a good text editor that you can use for all sorts of coding. Adobe's Brackets (also free) is also pretty decent contender if you're shopping around for an IDE/text editor. All comes down to personal choice, I guess.