<p>I've found syntax highlighters that highlight pre-existing code, but I'd like to do it as you type with a WYSIWYG-style editor. I don't need auto-completed functions, just the highlighting.</p>

<p>As a follow-up question, what is the WYSIWYG editor that stackoverflow uses?</p>

<p>Edit: Thanks to the answer below, I found two that look like they might suit my needs:
<a href="http://www.cdolivet.net/editarea/" rel="nofollow noreferrer">EditArea</a> and <a href="http://codepress.sourceforge.net/" rel="nofollow noreferrer">CodePress</a></p>

<p>EDIT:  See this question also:<br>
<a href="https://stackoverflow.com/questions/379185/free-syntax-highlighting-editor-control-in-javascript">https://stackoverflow.com/questions/379185/free-syntax-highlighting-editor-control-in-javascript</a></p>

[{'answer_id': 61657, 'author': 'Brian R. Bondy', 'author_id': 3153, 'author_profile': 'https://Stackoverflow.com/users/3153', 'pm_score': 2, 'selected': False, 'text': '<p>See <a href="http://code.google.com/p/google-code-prettify/" rel="nofollow noreferrer">Google code pretify</a>.</p>\n\n<p>See this question for the <a href="https://stackoverflow.com/questions/51808/edit-control-on-stack-overflow">edit control that stackoverflow</a> uses.</p>\n'}, {'answer_id': 61664, 'author': 'Frank Krueger', 'author_id': 338, 'author_profile': 'https://Stackoverflow.com/users/338', 'pm_score': 4, 'selected': True, 'text': '<p>Here is a really interesting article about how to write one: (Even better, he gives the full source to a JavaScript formatter and colorizer.)</p>\n\n<p><a href="http://marijn.haverbeke.nl/codemirror/story.html" rel="noreferrer">Implementing a syntax-higlighting JavaScript editor in JavaScript</a>\nor\nA brutal odyssey to the dark side of the DOM tree</p>\n\n<blockquote>\n  <p>How does one do decent syntax\n  highlighting? A very simple scanning\n  can tell the difference between\n  strings, comments, keywords, and other\n  code. But this time I wanted to\n  actually be able to recognize regular\n  expressions, so that I didn\'t have any\n  blatant incorrect behaviour anymore.</p>\n</blockquote>\n\n<p>Importantly, it handles regex correctly. Also of interest is that he used a continuation passing style lexer/parser instead of the more typical lex (or regex) based lexers that you\'ll see in the wild.</p>\n\n<p>As a bonus he discusses a lot of real-world issues you\'ll run into when working with JavaScript in the browser.</p>\n'}, {'answer_id': 61674, 'author': 'Eric', 'author_id': 6367, 'author_profile': 'https://Stackoverflow.com/users/6367', 'pm_score': 0, 'selected': False, 'text': '<p>I dont program a lot of javascript but JSEclipse has been pretty helpful for me in the past. It comes as an Eclipse plug-in.</p>\n\n<p>I\'ve been using it for years for free</p>\n\n<p><a href="http://www.interaktonline.com/products/eclipse/jseclipse/overview/" rel="nofollow noreferrer">http://www.interaktonline.com/products/eclipse/jseclipse/overview/</a></p>\n\n<p>I also rely heavily on FireBug for Firefox whenever I deal with Javascript</p>\n'}, {'answer_id': 62411, 'author': 'Vitaly Sharovatov', 'author_id': 6647, 'author_profile': 'https://Stackoverflow.com/users/6647', 'pm_score': 0, 'selected': False, 'text': '<p>You can also try <a href="http://softwaremaniacs.org/soft/highlight/en/" rel="nofollow noreferrer">http://softwaremaniacs.org/soft/highlight/en/</a> - it\'s fast, it supports not only javascript but many other languages. And if you need a live preview of how the highlighting will work, you can use setInterval to run the highlighting and show it in a separate box.</p>\n'}, {'answer_id': 62462, 'author': 'Lucas Oman', 'author_id': 6726, 'author_profile': 'https://Stackoverflow.com/users/6726', 'pm_score': 0, 'selected': False, 'text': '<p>Although it has a steep learning curve, <a href="http://www.vim.org" rel="nofollow noreferrer" title="Vim">Vim</a> is the best editor out there, for any language. It has a GUI version, but really shines in terminal editing. Any time spent learning how to use this editor is not time wasted. It has syntax highlighting, as you\'re looking for, as well as thousands (literally) of other features and plugins.</p>\n'}, {'answer_id': 62930, 'author': 'Will Moffat', 'author_id': 7167, 'author_profile': 'https://Stackoverflow.com/users/7167', 'pm_score': 4, 'selected': False, 'text': '<p>The question might be better stated as "What syntax-highlighting editor do you recommended to replace an html textarea in my web app?" (Some of the other answers here deal with desktop apps or pure-syntax highlighters, not client-side editors)</p>\n\n<p>I also recommend <a href="http://marijn.haverbeke.nl/codemirror/" rel="noreferrer">CodeMirror</a>, it\'s written in Javascript and supports lots of browsers. It uses a real parser (rather than regexps) so it can deal with complex problems like correctly highlighting escaped strings. The developer is also very responsive on the <a href="http://groups.google.com/group/codemirror" rel="noreferrer">discussion group</a>.</p>\n'}, {'answer_id': 3359424, 'author': 'balupton', 'author_id': 130638, 'author_profile': 'https://Stackoverflow.com/users/130638', 'pm_score': 0, 'selected': False, 'text': '<p>Gotta go with <a href="http://mozillalabs.com/bespin/" rel="nofollow noreferrer">Bespin</a> by Mozilla. It\'s built using HTML5 features (so it\'s quick and fast, but doesn\'t support legacy browsers though), but definitely amazing to use and beats everything I\'ve come across - probably beacause it\'s Mozilla backing it, and they develop Firefox so yeah... There\'s also a <a href="http://www.balupton.com/sandbox/jquery-sparkle/demo/#bespin" rel="nofollow noreferrer">jQuery Plugin which contains a extension for it</a> to make it a bit easier to use with jQuery.</p>\n'}, {'answer_id': 4204543, 'author': 'Barkermn01', 'author_id': 493804, 'author_profile': 'https://Stackoverflow.com/users/493804', 'pm_score': 1, 'selected': False, 'text': '<p>Sorry to drag this back up but the best i have found in CodeMirror <a href="http://codemirror.net/" rel="nofollow">http://codemirror.net/</a></p>\n'}]
['https://Stackoverflow.com/questions/61655', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']