Can CodeMirror change the background color of a section of Code?

Ben

New Member
I have a programming language (called SPIN) that has a custom IDE that highlights the background of sections of code (marked by keywords at the beginning of a line), to help with visibility. (The highlighting scheme also changes with the different colored background)Example: http://i.stack.imgur.com/1bpsu.pngI am attempting to develop an online IDE for this language using CodeMirror. However, I have not been able to find any information on how I would be able to change the background color on a section of code. There is a partial implementation of an editor on http://www.phipi.com/editspin/, without colored highlighting or background. It appears that CodeMirror wraps each line in a \[code\]<pre>\[/code\] tag, with nothing to differentiate between lines.Is there any way for me to implement this in CodeMirror? Or is there another editor framework that I could use to implement this?
 
Top