Menu

[r95]: / trunk / php-mode-web / htdocs / html-manual / Embedded-HTML.html  Maximize  Restore  History

Download this file

88 lines (71 with data), 3.8 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<html lang="en">
<head>
<title>Embedded HTML - PHP Mode Manual</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="PHP Mode Manual">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.html#Top">
<link rel="prev" href="Customization.html#Customization" title="Customization">
<link rel="next" href="Contributors.html#Contributors" title="Contributors">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
This manual documents PHP mode version 1.5.0 for
use with GNU Emacs.
Copyright (C) 2008 Aaron S. Hawley
Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software
Foundation; with no Invariant Sections, and no Cover Texts. A
copy of the license is included in the section entitled ``Copying
This Manual.''
A copy of the license is also available from the Free Software
Foundation Web site at `http://www.gnu.org/licenses/fdl.html'.
The document was typeset with
GNU Texinfo (http://www.texinfo.org/).
$Date: 2008-11-04 11:51:51 -0500 (Tue, 04 Nov 2008) $
$Revision: 90 $
-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<p>
<a name="Embedded-HTML"></a>
Next:&nbsp;<a rel="next" accesskey="n" href="Contributors.html#Contributors">Contributors</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Customization.html#Customization">Customization</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="index.html#Top">Top</a>
<hr>
</div>
<h2 class="appendix">Appendix A Embedded HTML</h2>
<!-- Someday, there will be a decisive way to work on PHP and -->
<!-- HTML markup together. For now, it's not decided. This -->
<!-- section offers some workarounds and offers some -->
<!-- suggestions. -->
<p><a name="index-markup-formats-289"></a><a name="index-XML-290"></a><a name="index-SGML-291"></a><a name="index-embedded-code-292"></a><a name="index-indentation_002c-markup-293"></a><a name="index-HTML-294"></a>The PHP programming language is commonly embedded with HTML
but also with other markup formats. Unfortunately, PHP mode
is currently unable to recognize these other bits and
provide commands that behave appropriately. Other Emacs
modes for properly indenting HTML include HTML mode, SGML
mode and XML mode.
<p><a name="index-php_002dmode-295"></a><a name="index-M_002dx-php_002dmode-296"></a><a name="index-html_002dmode-297"></a><a name="index-M_002dx-html_002dmode-298"></a>For example, when editing the HTML sections found in a PHP
file, consider turning on HTML mode with <kbd>M-x
html-mode</kbd>. Use the the mode-specific commands for
manipulating the HTML. When finished, turn back on PHP mode
with <kbd>M-x php-mode</kbd> to return working on the PHP
sections of the file.
<p><a name="index-multiple-major-mode-299"></a><a name="index-mumamo-300"></a><a name="index-mmm_002dmode-301"></a><a name="index-multi_002dmode-302"></a>Alternatively, consider using a <dfn>multiple major mode</dfn>
like mumamo, mmm-mode or multi-mode. These modes allow a
single buffer to appoint different major modes to respective
portions of the buffer.
</body></html>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.