Instead of using just a plain and simple text editor. I would suggest using Syn Text Editor it will highlight code for you depending on what language/format you choose (HTML, CSS, PHP, C++, etc...) It even has a "template" like thing that it will throw together for you with just the basic/essential tags in it (ie.
Code:
<!-- Created: mm/dd/yy [TIME] by [NAME] -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional/EN">
<html>
<head>
<title>Untitled</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta name="generator" content="syn">
</head>
<body>
</body>
</html>
That is what will pop-up for an HTML doc.
-GT
Bookmarks