[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 6e50485 268/433: Added html-php submode class.
From: |
Dmitry Gutov |
Subject: |
[elpa] master 6e50485 268/433: Added html-php submode class. |
Date: |
Thu, 15 Mar 2018 19:44:18 -0400 (EDT) |
branch: master
commit 6e504855f20f3bf114021c01485f04bd5a438370
Author: viritrilbia <viritrilbia>
Commit: viritrilbia <viritrilbia>
Added html-php submode class.
---
mmm-auto.el | 3 ++-
mmm-sample.el | 48 ++++++++++++++++++++++++++++++++++++------------
2 files changed, 38 insertions(+), 13 deletions(-)
diff --git a/mmm-auto.el b/mmm-auto.el
index 6faef4c..8c8aa2c 100644
--- a/mmm-auto.el
+++ b/mmm-auto.el
@@ -3,7 +3,7 @@
;; Copyright (C) 2000 by Michael Abraham Shulman
;; Author: Michael Abraham Shulman <address@hidden>
-;; Version: $Id: mmm-auto.el,v 1.20 2003/03/02 20:18:42 viritrilbia Exp $
+;; Version: $Id: mmm-auto.el,v 1.21 2003/03/25 21:49:26 viritrilbia Exp $
;;{{{ GPL
@@ -78,6 +78,7 @@
(cweb "mmm-cweb" nil)
(sgml-dtd "mmm-sample" nil)
(noweb "mmm-noweb" nil)
+ (html-php "mmm-sample" nil)
)
"Alist of submode classes autoloaded from files.
Elements look like \(CLASS FILE PRIVATE) where CLASS is a submode
diff --git a/mmm-sample.el b/mmm-sample.el
index 4defcca..dcc2a5f 100644
--- a/mmm-sample.el
+++ b/mmm-sample.el
@@ -3,7 +3,7 @@
;; Copyright (C) 2003 by Michael Abraham Shulman
;; Author: Michael Abraham Shulman <address@hidden>
-;; Version: $Id: mmm-sample.el,v 1.25 2003/03/09 17:04:04 viritrilbia Exp $
+;; Version: $Id: mmm-sample.el,v 1.26 2003/03/25 21:49:24 viritrilbia Exp $
;;{{{ GPL
@@ -176,7 +176,13 @@ and MODE is a major mode function symbol.")
(mmm-add-group
'eperl
- '((eperl-code
+ '((eperl-expr
+ :submode perl
+ :face mmm-output-submode-face
+ :front "<:="
+ :back ":>"
+ :insert ((?= eperl-expr nil @ "<:=" @ " " _ " " @ ":>" @)))
+ (eperl-code
:submode perl
:face mmm-code-submode-face
:front "<:"
@@ -185,12 +191,12 @@ and MODE is a major mode function symbol.")
:insert ((?p eperl-code nil @ "<:" @ " " _ " " @ ":>" @)
(?: eperl-code ?p . nil)
(?_ eperl-code_ nil @ "<:" @ " " _ " " @ "_:>" @)))
- (eperl-expr
- :submode perl
- :face mmm-output-submode-face
- :front "<:="
- :back ":>"
- :insert ((?= eperl-expr nil @ "<:=" @ " " _ " " @ ":>" @)))))
+ (eperl-comment
+ :submode text
+ :face mmm-comment-submode-face
+ :front ":>//"
+ :back "\n")
+ ))
;;}}}
;;{{{ File Variables
@@ -297,6 +303,28 @@ and MODE is a major mode function symbol.")
;; (mmm-add-mode-ext-class 'apache-generic-mode nil 'httpd-conf-perl)
;;}}}
+;;{{{ PHP in HTML
+
+(mmm-add-group 'html-php
+ '((html-php-output
+ :submode php-mode
+ :face mmm-output-submode-face
+ :front "<\\?php *echo "
+ :back "\\?"
+ :include-front t
+ :front-offset 5
+ :insert ((?e php-echo nil @ "<?php" @ " echo " _ " " @ "?>" @))
+ )
+ (html-php-code
+ :submode php-mode
+ :face mmm-code-submode-face
+ :front "<\\?\\(php\\)?"
+ :back "\\?>"
+ :insert ((?p php-section nil @ "<?php" @ " " _ " " @ "?>" @)
+ (?b php-block nil @ "<?php" @ "\n" _ "\n" @ "?>" @))
+ )))
+
+;;}}}
;; NOT YET UPDATED
;;{{{ HTML in PL/SQL;-COM-
@@ -343,8 +371,4 @@ and MODE is a major mode function symbol.")
(provide 'mmm-sample)
-
-;;; Local Variables:
-;;; End:
-
;;; mmm-sample.el ends here
\ No newline at end of file
- [elpa] master 4eeeef0 371/433: Add first test ever, (continued)
- [elpa] master 4eeeef0 371/433: Add first test ever, Dmitry Gutov, 2018/03/15
- [elpa] master 0d4108b 345/433: Make README more up-to-date, Dmitry Gutov, 2018/03/15
- [elpa] master f261642 398/433: Merge pull request #50 from syohex/fix-invalid-function-call, Dmitry Gutov, 2018/03/15
- [elpa] master 4085494 402/433: Release 0.5.4, Dmitry Gutov, 2018/03/15
- [elpa] master 99539e8 340/433: Rewrite mmm-regions-alist for performance, Dmitry Gutov, 2018/03/15
- [elpa] master 4f79b74 373/433: Add two failing tests, Dmitry Gutov, 2018/03/15
- [elpa] master bdc7d47 273/433: (html-js): Support JS version in language attribute., Dmitry Gutov, 2018/03/15
- [elpa] master f926613 206/433: # Applied patch from Alan Shutko <address@hidden>., Dmitry Gutov, 2018/03/15
- [elpa] master c68cee0 411/433: Merge pull request #73 from AdamNiederer/master, Dmitry Gutov, 2018/03/15
- [elpa] master 15c766d 216/433: * mmm-vars.el (mmm-classes-alist): Document new keywords., Dmitry Gutov, 2018/03/15
- [elpa] master 6e50485 268/433: Added html-php submode class.,
Dmitry Gutov <=
- [elpa] master c6a30e3 251/433: Trimmed ancient docstring., Dmitry Gutov, 2018/03/15
- [elpa] master 30811bc 249/433: Added new files to be byte-compiled (Joe Kelsey), Dmitry Gutov, 2018/03/15
- [elpa] master 7b783ee 308/433: Don't confuse script tags with EJS tags, Dmitry Gutov, 2018/03/15
- [elpa] master 00c99c7 278/433: (lisp_LISP): Added mmm-myghty.el., Dmitry Gutov, 2018/03/15
- [elpa] master ad24c9d 275/433: * mmm-noweb.el (mmm-syntax-region-list), Dmitry Gutov, 2018/03/15
- [elpa] master a27d7af 329/433: Allow toggling whitespace-mode after initialization, Dmitry Gutov, 2018/03/15
- [elpa] master ce3cb79 367/433: * mmm-update-mode-info: bind `buffer-file-truename' to nil, Dmitry Gutov, 2018/03/15
- [elpa] master 37f6dea 396/433: mmm-indent-line: Use primary mode if submode ends right here, Dmitry Gutov, 2018/03/15
- [elpa] master 1b9406d 361/433: Released 0.5.0, Dmitry Gutov, 2018/03/15
- [elpa] master f9e4dd5 376/433: Fix #26, Dmitry Gutov, 2018/03/15