# PHP - Colour XML Code

**URL:** <https://forum.kirupa.com/t/php-colour-xml-code/252406>\
**Category:** programming\
**Created:** [February 19, 2008, 9:49pm UTC](https://forum.kirupa.com/t/php-colour-xml-code/252406 "2008-02-19T21:49:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nineteen](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nineteen/32/2679_2.png) [@Nineteen](https://forum.kirupa.com/u/Nineteen)\
**Post date:** [February 19, 2008, 9:49pm UTC](https://forum.kirupa.com/t/php-colour-xml-code/252406/1 "2008-02-19T21:49:52Z")

</div>

Hi,

Is there any scripts / functions out there that will colour code XML when its inserted or comes from a database / strings?

Eg:

```php

//Page Title
$sPageTitle = "LaszloCode";
//Include Header
include("include/header.php");

//Similar to what is happening here, it has coloured the 'PHP'

```

Similar to what is happening here, it has coloured the ‘PHP’

Cheers,  
Ryan
