Home Blog

Code Mirror 2 classes

August 19, 2013

Code Mirror is this pretty sweet web based code editor, designed to be embedded. It’s quite a technical achievement and it’s no wonder that both Brackets and Light Table are using it.

Theming is done via css; pretty much every significant word is put in a span with a class name, and you just apply your styles to those classes. The only troubble is I haven’t found a good reference of which class names are applied to what. I’ve thrown a quick one together here for html, css and js.

CSS

JS

HTML

I don't host a comment system, so maybe tweet them or something.