Do you mean an html editor within Moodle or generally?. If you men generally there are serveral good free ones(NVU, Notepad2, Notepad++).
If you mean for teaching within an interactive web form you might look up the geshi project.
Text editors
An editor with line numbers and syntax highlighter
This discussion has been locked so you can no longer reply to it.