1

I have an html page with a textarea in which users type python code. I'd like for the input python code to be highlighted as they type, much as a desktop-based IDE would do.

Unlike this question, I don't want the code to be passed to the server and returned highlighted - I'd like for it all to be done by javascript in the browser.

Rather than re-invent the wheel, is there an existing open source javascript library which would do this?

2 Answers 2

2

After a bit more googling, and to answer my own question - wikipedia has a comparison of javascript source code editors and CodeMirror seems to be a popular choice.

Sign up to request clarification or add additional context in comments.

Comments

1

Check out Mozilla Bespin (now called Skywriter) https://mozillalabs.com/skywriter/

I'm fairly sure it highlights Python

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.