Jump to content

Online Web Based Code (text) Editor


spiriad
 Share

Recommended Posts

Hello there,Is there any good online web based code (text) editor with syntax highlighting for different languages (C,C++,PHP, etc) and auto-completion .Or, with at least one of that options (better if both)? Seems that the results from gooogle aren't helping me so much.Thanks

Link to comment
Share on other sites

I strongly doubt you're going to find either syntax highlighting or auto-completion in a web editor. The data transfer and latency involved when the thing is online makes that pretty difficult. It's also going to be constantly re-doing the text area to add spans and things with different colors to do highlighting, so it's not going to be able to use a regular text area, and it might even lose focus or cursor position when it updates to do the highlighting (this already assumes that it's taken the time to figure out what color something needs to be highlighted, so you'll need to download all highlighters when the text editor starts).Basically, both syntax highlighting and auto-completion are extremely difficult to implement in a normal textarea element because in order to do either of those things the Javascript will need to be constantly changing the structure of the document, which is going to make editing it at the same time pretty difficult.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...