__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import { getMode } from "../modes.js"
import { startWorker } from "./highlight_worker.js"
import { regChange } from "./view_tracking.js"
// Used to get the editor into a consistent state again when options change.
export function loadMode(cm) {
cm.doc.mode = getMode(cm.options, cm.doc.modeOption)
resetModeState(cm)
}
export function resetModeState(cm) {
cm.doc.iter(line => {
if (line.stateAfter) line.stateAfter = null
if (line.styles) line.styles = null
})
cm.doc.modeFrontier = cm.doc.highlightFrontier = cm.doc.first
startWorker(cm, 100)
cm.state.modeGen++
if (cm.curOp) regChange(cm)
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Display.js | File | 4.75 KB | 0644 |
|
| focus.js | File | 1.55 KB | 0644 |
|
| gutters.js | File | 1.52 KB | 0644 |
|
| highlight_worker.js | File | 2.22 KB | 0644 |
|
| line_numbers.js | File | 2.12 KB | 0644 |
|
| mode_state.js | File | 621 B | 0644 |
|
| operations.js | File | 7.89 KB | 0644 |
|
| scroll_events.js | File | 4.85 KB | 0644 |
|
| scrollbars.js | File | 7.31 KB | 0644 |
|
| scrolling.js | File | 7.98 KB | 0644 |
|
| selection.js | File | 7.29 KB | 0644 |
|
| update_display.js | File | 10.26 KB | 0644 |
|
| update_line.js | File | 7.8 KB | 0644 |
|
| update_lines.js | File | 3.39 KB | 0644 |
|
| view_tracking.js | File | 5.26 KB | 0644 |
|