语法高亮怎么做!!??

这个代码是网上找来的([url=http://ttyp.cnblogs.com/]http://ttyp.cnblogs.com/[/url]),自己写实在太麻烦了。。。主要是上个学期那个编译器写傻了:@ 不过怎么改也改不好。。。>和>

Javascript Insert At Cursor

JavaScript to insert text at the current position of the cursor in a textarea. [code=js]function insertAtCursor(myField, myValue) { //IE support if (document.selection) { myField.focus(); sel = document.selection.createRange(); sel.text = myValue; } //MOZILLA/NETSCAPE support else if (myField.selectionStart || myField.selectionStart == ‘0’) { var startPos = myField.selectionStart; var endPos = myField.selectionEnd; myField.value = myField.value.substring(0, startPos) + myValue […]