-
Notifications
You must be signed in to change notification settings - Fork 1
/
SublimeTextAssociation.bat
116 lines (94 loc) · 2.66 KB
/
SublimeTextAssociation.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
@echo off
:: The MIT License (MIT) Copyright (c) 2014 GlaiveÐ
:: https://github.com/Glaived/SublimeTextAssociation
setlocal enabledelayedexpansion
:top
:: Enter the path to the executable sublime_text.exe
:: e.i: C:\Program Files\Sublime Text 3\sublime_text.exe
set pathToSublimeTextExe=YOUR_VALUE
if defined pathToSublimeTextExe if exist "%pathToSublimeTextExe%" (
ftype SublimeTextFiles=
ftype SublimeTextFiles="%pathToSublimeTextExe%" "%%1"
:: Global
assoc .conf=SublimeTextFiles
assoc .config=SublimeTextFiles
assoc .inf=SublimeTextFiles
assoc .ini=SublimeTextFiles
assoc .log=SublimeTextFiles
assoc .txt=SublimeTextFiles
assoc .bak=SublimeTextFiles
:: Sublime Text
assoc .sublime-build=SublimeTextFiles
assoc .sublime-commands=SublimeTextFiles
assoc .sublime-completions=SublimeTextFiles
assoc .sublime-keymap=SublimeTextFiles
assoc .sublime-macro=SublimeTextFiles
assoc .sublime-menu=SublimeTextFiles
assoc .sublime-mousemap=SublimeTextFiles
assoc .sublime-settings=SublimeTextFiles
assoc .sublime-snippet=SublimeTextFiles
assoc .sublime-theme=SublimeTextFiles
:: TextMate
assoc .tmLanguage=SublimeTextFiles
assoc .tmPreferences=SublimeTextFiles
assoc .tmSnippet=SublimeTextFiles
:: BBcode
assoc .bb=SublimeTextFiles
assoc .bbcode=SublimeTextFiles
:: Markdown
assoc .md=SublimeTextFiles
assoc .mdown=SublimeTextFiles
assoc .markdn=SublimeTextFiles
assoc .markdown=SublimeTextFiles
:: Git
assoc .gitignore=SublimeTextFiles
assoc .id_rsa=SublimeTextFiles
:: Python
assoc .py=SublimeTextFiles
:: Apache
assoc .htaccess=SublimeTextFiles
assoc .htgroups=SublimeTextFiles
assoc .htpasswd=SublimeTextFiles
:: Web development (Front)
assoc .css=SublimeTextFiles
:: assoc .htm=SublimeTextFiles
:: assoc .html=SublimeTextFiles
assoc .js=SublimeTextFiles
assoc .json=SublimeTextFiles
:: assoc .svg=SublimeTextFiles
:: Template engine (Front)
assoc .ctp=SublimeTextFiles
assoc .haml=SublimeTextFiles
assoc .twig=SublimeTextFiles
:: Web development (Pre-Proc HTML)
assoc .jade=SublimeTextFiles
:: Web development (Pre-Proc CSS)
assoc .less=SublimeTextFiles
assoc .sass=SublimeTextFiles
assoc .scss=SublimeTextFiles
:: Web developpement (Back)
assoc .phar=SublimeTextFiles
assoc .php=SublimeTextFiles
assoc .rb=SublimeTextFiles
assoc .sql=SublimeTextFiles
echo.
echo.
echo Congratulations, your configuration for Sublime Text has been executed
echo.
echo.
pause
) else (
echo.
echo pathToSublimeTextExe variable is not defined
echo or the path to the executable of Sublime Text is incorrect.
if defined pathToSublimeTextExe (
echo.
echo pathToSublimeTextExe:
echo !pathToSublimeTextExe!
)
echo.
pause
cls
goto top
)
exit