There are a couple of JS libraries that provide syntax highlighting for the code. But I'm not sure whether there's a Python library that makes it possible to highlight code as it is being typed dynamically.
Nevertheless, supporting syntax highlights would be a cool add-on. 😄