add batch_file highlighting

This commit is contained in:
nightwing 2013-04-12 15:09:41 +04:00
commit 73ad918a6b
5 changed files with 177 additions and 1 deletions

View file

@ -139,6 +139,7 @@ var docs = {
"docs/actionscript.as": "ActionScript",
"docs/autohotkey.ahk": "AutoHotKey",
"docs/batch_file.bat": "BatchFile",
"docs/erlang/erl": "Erlang",
"docs/forth.frt": "Forth",
"docs/haskell.hs": "Haskell",

View file

@ -0,0 +1,15 @@
:: batch file highlighting in Ace!
@echo off
CALL set var1=%cd%
echo unhide everything in %var1%!
:: FOR loop in bat is super strange!
FOR /f "tokens=*" %%G IN ('dir /A:D /b') DO (
echo %var1%%%G
attrib -r -a -h -s "%var1%%%G" /D /S
)
pause
REM that's all

View file

@ -90,7 +90,7 @@ var modesByName = {
scala: ["Scala" , "scala"],
scss: ["SCSS" , "scss"],
sass: ["SASS" , "sass"],
sh: ["SH" , "sh|bash|bat"],
sh: ["SH" , "sh|bash"],
sql: ["SQL" , "sql"],
stylus: ["Stylus" , "styl|stylus"],
svg: ["SVG" , "svg"],
@ -109,6 +109,7 @@ var modesByName = {
abap: ["ABAP" , "abap"],
actionscript: ["ActionScript" ,"as"],
autohotkey: ["AutoHotKey" , "ahk"],
batch_file: ["BatchFile" , "bat|cmd"],
erlang: ["Erlang" ,"erl|hrl"],
forth: ["Forth", ,"frt|fs|ldr"],
haskell: ["Haskell", "hs"],