marijnh/CodeMirror2 — pull request #253 by jankeromnes (2011-11-26 01:28:06+00:00)
Title: Make Markdown and Diff modes theme-independant

Hi Marijn,

As promised, I tried to make Markdown and Diff modes work with other themes than default. Here is what I did:

- In `mode/diff/diff.css`, I applied the current styling to all themes. This actually works well, even with themes having a dark background.
- In `mode/markdown/markdown.js` and `.css`, I changed a few mode-specific words to more standard programming words (eg `cm-linktext` became `cm-string`) and I defined a new standard word `cm-link`. I also separated theme-independant text formatting from theme-dependant colors.
- In every `theme/*.css`, I added styling for the new `cm-link` word, generally reusing the color of `cm-atom` with underlining.

I'm not sure I did everything the right way here, so please feel free to comment on the patch before accepting. I'll be happy to amend.

Cheers,
Jan