# Php-html source code formatter

**URL:** <https://forum.kirupa.com/t/php-html-source-code-formatter/275151>\
**Category:** Uncategorized\
**Created:** [November 10, 2008, 4:28pm UTC](https://forum.kirupa.com/t/php-html-source-code-formatter/275151 "2008-11-10T16:28:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![log](https://avatars.discourse-cdn.com/v4/letter/l/e480ec/32.png) [@log](https://forum.kirupa.com/u/log)\
**Post date:** [November 10, 2008, 4:28pm UTC](https://forum.kirupa.com/t/php-html-source-code-formatter/275151/1 "2008-11-10T16:28:38Z")

</div>

Hi mates, ive know this tools “” to format php source code with possibility to format html code in php page. I think that is a useful tools to order badly formatted code. I think that this tools is shareware, i ask you if you know a freeware appls to obtain the same result.

Here is the link : [http://www.semdesigns.com/products/formatters/PHPFormatter.html](http://www.semdesigns.com/products/formatters/PHPFormatter.html)

There are the PHP Formatter Features

```
* Formatted code compiles and executes exactly like unformatted code
* Complete syntax check of formatted source code; discovers syntax errors before exposing them on the web
* Specification of indentation step distance
* Specification of arbitrary input tab column positions
* Complete control of location of code block braces { ... }
* Option to indent code blocks
* Option to insert line breaks in expressions at &&, || and ? :
* Option to insert line breaks in expressions at concatenation (".") operations
* Option to format HTML in PHP page
* Output encoding in ASCII, European ASCII, or UNICODE
* A version can optionally obfuscate the code to make it very difficult to understand by scrambling the source.
* PHP4 and PHP5 versions
```
