marijnh/CodeMirror2 — pull request #382 by pmario (2012-02-21 19:24:55+00:00)
Title: Tw syntax update and runMode with tab and whitespace handling

Hi marijn,
I did create a CodeMirror.runMode (with your latest master branch), that accepts tabSize setting and styles tabs accordingly.

If whitespace and tabs are mixed eg:
```

```
the spaces are styled with `class="cm-tab-space-mixed"`. With my cm app, I use this styling, to change the background color of mixed spaces. `and` are combined into one span.

I didn't add any space styling to runmode.html. But I did some updates, to see the handling. I also changed, the runMode() call descriptions, since callback gets 4 params instead of 2.

I'm not 100% sure with the `callback is a function` mode. The tab and whitespace handling also calls `callback` with the same params as text does. But I'm not sure if this makes sense.

-----

Please update the tiddlywiki.js. It only contains some minor fixes in the description header and changed status from beta to stable.

regards
mario