Moin moin! Hat hier schon jemand PHP syntax highlighting in seinen GNU-emacs (V21.1.1, Suse 8.0) "eingebaut" und kann mir die entsprechende *.el Datei und/oder .gnu-emacs-custom Auszug zukommen lassen? html habe ich hinbekommen. Aber wenn die Dateien mit *.php enden, dann habe ich nur s/w... Dieselbe umbenannt auf *.html ist <neudeutsch> ge-highlightet </neudeutsch>... Dankeschon mal im Voraus!! Hans-Georg
Hans-Georg Lerdo <hg@lerdo.de> writes: Hi,
Moin moin!
Hat hier schon jemand PHP syntax highlighting in seinen GNU-emacs (V21.1.1, Suse 8.0) "eingebaut" und kann mir die entsprechende *.el Datei und/oder .gnu-emacs-custom Auszug zukommen lassen?
habe keine SuSE ( besser ist das ) aber das was Du brauchst ist mit solchen Einträgen erledigt: ,----[ ~/.emacs ] | ;;==================================================================== | ;; PHP Mode | ;;==================================================================== | (autoload 'php-mode "php-mode" "PHP editing mode" t) | (add-to-list 'auto-mode-alist '("\\.php\\'" . php-mode)) | (add-to-list 'auto-mode-alist '("\\.php3\\'" . php-mode)) | (add-to-list 'auto-mode-alist '("\\.php4\\'" . php-mode)) | ;;==================================================================== | ;; PHP Mode End | ;;==================================================================== | | ;;==================================================================== | ;; HTML Mode | ;;==================================================================== | (autoload 'html-helper-mode "html-helper-mode" "HTML editing mode" t) | (setq auto-mode-alist (cons '("\\.html$" . html-helper-mode) auto-mode-alist)) | (setq auto-mode-alist (cons '("\\.asp$" . html-helper-mode) auto-mode-alist)) | (setq auto-mode-alist (cons '("\\.phtml$" . html-helper-mode) auto-mode-alist)) | ;;==================================================================== | ;; HTML Mode End | ;;==================================================================== | | ;;==================================================================== | ;; CPerl Mode | ;;==================================================================== | (autoload 'cperl-mode "cperl-mode" "Perl editing mode" t) | (add-to-list 'auto-mode-alist '("\\.pl\\'" . cperl-mode)) | (add-to-list 'auto-mode-alist '("\\.pm\\'" . cperl-mode)) | ;;==================================================================== | ;; CPerl Mode End | ;;==================================================================== `---- Dafür brauchst Du wiederum: /usr/share/emacs21/site-lisp/php-elisp/php-mode.elc /usr/share/emacs/21.2/lisp/progmodes/cperl-mode.elc /usr/share/emacs21/site-lisp/html-helper-mode/html-helper-mode.elc Wo die Sachen unter SuSE zu finden sind kann ich nicht sagen. Pozdrawiam/Gruß/Regards Robert Rakowicz -- Robert Rakowicz E-Mail: b9001@rjap.de URL: www.rjap.de
participants (2)
-
Hans-Georg Lerdo
-
Robert Rakowicz