views:

68

answers:

1

I need to add a text area that also has line numbering capabilities. I tried EditArea, but I couldn't make it work with text files. It would be ideal if it could highlight syntax for existing programming languages, but that would only be a side bonus.

The main thing I'm after is line numbering for whatever I paste in it. Please only list open source ones.

A: 

Gvim does syntax highlighting for lots of languages, js included. It's capable of showing line numbers and almost anything else you've want from a source code editor.

Granted, it's just a graphical interface on top of vi so it may not be your first choice.

diciu
Yeah :) ... except I'm looking for something I can embed in a website. Notice the wysiwyg tag.
Geo
Oh I misread your question - I assumed it refers to an editor for .js files, not an editor implemented as a .js component.
diciu