(col)
| 1580 | changes.push({from: 0, to: doc.size}); |
| 1581 | } |
| 1582 | function makeTab(col) { |
| 1583 | var w = options.tabSize - col % options.tabSize, cached = tabCache[w]; |
| 1584 | if (cached) return cached; |
| 1585 | for (var str = '<span class="cm-tab">', i = 0; i < w; ++i) str += " "; |
| 1586 | return (tabCache[w] = {html: str + "</span>", width: w}); |
| 1587 | } |
| 1588 | function themeChanged() { |
| 1589 | scroller.className = scroller.className.replace(/\s*cm-s-\S+/g, "") + |
| 1590 | options.theme.replace(/(^|\s)\s*/g, " cm-s-"); |