HTML is a page description language. Therefore given a page that you've assembled, it's relatively easy to reverse engineer it to produce the description in HTML.
Javascript and php are programming languages. They describe tasks to be performed. The normal way to write a program is to analyse the task yourself and then write the program. You can do this within Dreamweaver or a text editor, or an IDE. But at the end of the day, you need to understand programming in general and the language you are using in particular - and you need to type in the code!