1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 10:46:32 +00:00

改善:Aceで利用可能なすべてのLanguage Modeに対応

This commit is contained in:
Rokt33r
2015-07-29 03:28:48 +09:00
parent 0ac7839f11
commit 43403f8bb1
5 changed files with 44 additions and 8 deletions

10
modules/ace-modes.js Normal file
View 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]
})