Table of contents ▼▲
Code snippets not being displayed correctly
Unfortunately this is down to lack of documentation (another complaint I am VERY aware of!!!)There are a couple of ways around this...
- Each line must have at least 1 space at the start. Your pasted code does not, hence the break in flow.
- Wrap the code in [@ @] (see same example further down).
[code/core/cls_xml.php]
<?php
include_once("cls_api.php"
;
$XML_HEADER = '<?xml version="1.0" encoding="UTF-8" ?>';
class clsXML extends clsBase
{
var $_clsName = "clsXML";
// Set a 128k buffer
var $BufSize = 131072;
function SetBuffSize()
{
$this->Debug("SetBuffSize()", true);
if ($this->env['BufferSize'])
$this->BufSize = $this->env['BufferSize'];
} //SetBuffSize()
....
?>
Wrapped in [@ @]
<?php
include_once("cls_api.php");
$XML_HEADER = '<?xml version="1.0" encoding="UTF-8" ?>';
class clsXML extends clsBase
{
var $_clsName = "clsXML";
// Set a 128k buffer
var $BufSize = 131072;
function SetBuffSize()
{
$this->Debug("SetBuffSize()", true);
if ($this->env['BufferSize'])
$this->BufSize = $this->env['BufferSize'];
} //SetBuffSize()
....
?>