mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 10:46:32 +00:00
改善:Aceで利用可能なすべてのLanguage Modeに対応
This commit is contained in:
10
modules/ace-modes.js
Normal file
10
modules/ace-modes.js
Normal file
@@ -0,0 +1,10 @@
|
||||
var fs = require('fs')
|
||||
|
||||
module.exports = fs.readdirSync(__dirname + '/../browser/ace/src-min')
|
||||
.filter(function (file) {
|
||||
return file.match(/^mode-/)
|
||||
})
|
||||
.map(function (file) {
|
||||
var match = file.match(/^mode-([a-z0-9\_]+).js$/)
|
||||
return match[1]
|
||||
})
|
||||
Reference in New Issue
Block a user