File tree 1 file changed +15
-3
lines changed
1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -92,10 +92,22 @@ You can replace \"en\" with your ISO language code."
92
92
:tag " PHP Default Major Mode"
93
93
:type 'function )
94
94
95
+ (defcustom php-html-template-major-mode 'web-mode
96
+ " Major mode for editing PHP-HTML template."
97
+ :group 'php
98
+ :tag " PHP-HTML Template Major Mode"
99
+ :type 'function )
100
+
101
+ (defcustom php-blade-template-major-mode 'web-mode
102
+ " Major mode for editing Blade template."
103
+ :group 'php
104
+ :tag " PHP Blade Template Major Mode"
105
+ :type 'function )
106
+
95
107
(defcustom php-template-mode-alist
96
- ' ((" \\ .blade" . web -mode)
97
- (" \\ .phpt\\ '" . phpt-mode)
98
- (" \\ .phtml\\ '" . web -mode))
108
+ ` ((" \\ .blade" . , php-blade-template-major -mode )
109
+ (" \\ .phpt\\ '" . ,( if ( fboundp ' phpt-mode) 'phpt-mode php-html-template-major-mode) )
110
+ (" \\ .phtml\\ '" . , php-html-template-major -mode ))
99
111
" Automatically use another MAJOR-MODE when open template file."
100
112
:group 'php
101
113
:tag " PHP Template Mode Alist"
You can’t perform that action at this time.
0 commit comments