all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Horomnea <stefan@softexperience.ro>
Subject: php mode sub-region in mmm-mode
Date: Fri, 05 May 2006 12:14:56 +0300	[thread overview]
Message-ID: <445B1790.3010708@softexperience.ro> (raw)
In-Reply-To: <E1FboP5-00064K-Od@host1.softexperience.ro>

Hello,

In my quest to make emacs a webdev environment I followed the exact 
instructions from this link: 
http://www.dzr-web.com/people/darren/projects/emacs-webdev/
which basically explains how to put together html-mode, sgml-mode, 
css-mode, php-mode and mmm-mode so you can web dev with emacs. It 
worked, but, as always there are more things to be customized :) . A 
thing that is really important to me, is that emacs doesn't recognize 
the php areas delimited with <?php ?> tags on the same line, or 
delimited with <?=?> in a document that has php, html and javascript .

So, this works:

some html here
<?php
$var = 1;
?>
other html here


This doesn't work:

some html here
<? if ($var == 1) { // this is not colored well so i guess not 
recognized as the php mode ?>
some html
<? }  // this neiter ?>

This also doesn't work:

some html <?=$var?> other html.

Maybe the key to it is this setting in .emacs file:

;; Set up an mmm group for fancy html editing
(mmm-add-group
 'fancy-html
 '(
         (html-php-embedded
                :submode php-mode
                :face mmm-output-submode-face
                :front "<[?]php"
                :back "[?]>")
.... etc

How can I make to be colored the <? ?> code if the begining and end php 
tags are on the same line, or for short echo syntax like <?=?>

Thank you.

           reply	other threads:[~2006-05-05  9:14 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <E1FboP5-00064K-Od@host1.softexperience.ro>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=445B1790.3010708@softexperience.ro \
    --to=stefan@softexperience.ro \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.