add batch_file highlighting
This commit is contained in:
parent
2868df4b28
commit
73ad918a6b
5 changed files with 177 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
15
demo/kitchen-sink/docs/batch_file.bat
Normal file
15
demo/kitchen-sink/docs/batch_file.bat
Normal 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
|
||||
|
|
@ -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"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue