File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 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."
9292 :tag " PHP Default Major Mode"
9393 :type 'function )
9494
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+
95107(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 ))
99111 " Automatically use another MAJOR-MODE when open template file."
100112 :group 'php
101113 :tag " PHP Template Mode Alist"
You can’t perform that action at this time.
0 commit comments