Adobe Dreamweaver is a popular software to write or edit website code and supports various programming languages from HTML, CSS to PHP, ASP and many more.
Even there are many alternatives, still remains one of the most used and popular WYSYWYG program that allows to preview the result of written code.
It includes different templates to make your work easier.