EditArea is a free javascript editor for source code. It allows to write well formated source code with line numerotation, tab support, search & replace (with regexp) and live syntax highlighting (customizable).