Sorta. It’s your highlighting mode that threw me off. The best two methods to highlight PHP are
[noparse]
and
Example of
[/noparse]
<tr>
<td>
<?= $hello ?>
</td>
</tr>
[noparse]And
[/noparse]
```php
<tr>
<td>
<?= $hello ?>
</td>
</tr>
The highlight tag can also take “sql”, “javascript”, “css” or “html” as a parameter.
SELECT
p.`recordid` AS `recordid`,
p.`parentid` AS `parentid`,
p.`name` AS `name`,
p.`title` AS `title`,
c.`class` AS class,
c.`template` AS template,
e.`type` AS event_type,
e.`name` AS event_name,
e.`recordid` AS event_recordid,
ec.`class` AS event_class,
ec.`template` AS event_template,
o.`name` AS module_name,
o.`recordid` AS module_recordid,
o.`title` AS module_title,
oc.`class` AS module_class,
oc.`template` AS module_template,
oe.`type` AS module_event_type,
oe.`name` AS module_event_name,
oe.`recordid` AS module_event_recordid,
oec.`class` AS module_event_class,
oec.`template` AS module_event_template
FROM ".GZ."pages p
LEFT JOIN ".GZ."map pm ON pm.pageid = p.recordid
LEFT JOIN ".GZ."events e ON e.recordid = pm.eventid
LEFT JOIN ".GZ."modules o ON o.recordid = pm.moduleid
LEFT JOIN ".GZ."map ec ON ec.eventid = e.recordid AND ec.moduleid = 0
LEFT JOIN ".GZ."map oc ON oc.moduleid = o.recordid AND oc.eventid = 0
LEFT JOIN ".GZ."map c ON c.pageid = p.recordid AND c.eventid = 0 AND c.moduleid = 0
LEFT JOIN ".GZ."map om ON om.moduleid = o.recordid
LEFT JOIN ".GZ."events oe ON oe.recordid = om.eventid
LEFT JOIN ".GZ."map oec ON oec.eventid = oe.recordid";
// script.aculo.us scriptaculous.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008
// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// For details, see the script.aculo.us web site: http://script.aculo.us/
var Scriptaculous = {
Version: '1.8.1',
require: function(libraryName) {
// inserting via DOM fails in Safari 2.0, so brute force approach
document.write('<script type="text/javascript" src="'+libraryName+'"><\\/script>');
},
REQUIRED_PROTOTYPE: '1.6.0',
load: function() {
function convertVersionString(versionString){
var r = versionString.split('.');
return parseInt(r[0])*100000 + parseInt(r[1])*1000 + parseInt(r[2]);
}
if((typeof Prototype=='undefined') ||
(typeof Element == 'undefined') ||
(typeof Element.Methods=='undefined') ||
(convertVersionString(Prototype.Version) <
convertVersionString(Scriptaculous.REQUIRED_PROTOTYPE)))
throw("script.aculo.us requires the Prototype JavaScript framework >= " +
Scriptaculous.REQUIRED_PROTOTYPE);
$A(document.getElementsByTagName("script")).findAll( function(s) {
return (s.src && s.src.match(/scriptaculous\\.js(\\?.*)?$/))
}).each( function(s) {
var path = s.src.replace(/scriptaculous\\.js(\\?.*)?$/,'');
var includes = s.src.match(/\\?.*load=([a-z,]*)/);
(includes ? includes[1] : 'builder,effects,dragdrop,controls,slider,sound').split(',').each(
function(include) { Scriptaculous.require(path+include+'.js') });
});
}
}
Scriptaculous.load();
body {
min-width: 1024px;
}
#legend li,.legend li
{
display:inline;
list-style-type:none;
padding-right:20px;
}
/**
* This CSS file is for persistent CSS structures. Anything that might be
* customized per county should be reposited in that template's default.css
* or print.css files.
* $Id: common.css 12687 2010-09-28 14:32:15Z $
*/
#legend,.legend
{
background-color:#FFFFE8;
border:1px solid #ccc;
margin-top:10px;
}
#ProductionWarning {
background: #900;
color: #fff;
text-align: center;
padding: 3px;
border-bottom: 1px solid #000;
font-weight: bold;
font-size: 12px;
}
#loading_box
{
-moz-opacity:1px;
background-color:#FFF;
border:2px solid #000;
filter:alpha(opacity=100);
left:25%;
margin-left:auto;
margin-right:auto;
max-height:50%;
min-height:33%;
opacity:1px;
overflow:auto;
padding:10px;
position:absolute;
text-align:left;
top:33%;
width:50%;
z-index:10000;
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<script type="text/javascript" src="/js/lib/prototype.js"></script>
<script type="text/javascript" src="/js/src/effects.js"></script>
<script type="text/javascript" src="/js/src/dragdrop.js"></script>
<script type="text/javascript" src="/js/Gazelle.js"></script>
</head>
<body>
<div>
<h1>ok</h1>
<h2>Hello, I'm a module!</h2></div> </body>
</html>