mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
11 lines
433 B
JavaScript
11 lines
433 B
JavaScript
import CodeMirror from 'codemirror'
|
|
import 'codemirror-mode-elixir'
|
|
|
|
const stylusCodeInfo = CodeMirror.modeInfo.find(info => info.name === 'Stylus')
|
|
if (stylusCodeInfo == null) {
|
|
CodeMirror.modeInfo.push({name: 'Stylus', mime: 'text/x-styl', mode: 'stylus', ext: ['styl'], alias: ['styl']})
|
|
} else {
|
|
stylusCodeInfo.alias = ['styl']
|
|
}
|
|
CodeMirror.modeInfo.push({name: 'Elixir', mime: 'text/x-elixir', mode: 'elixir', ext: ['ex']})
|