HTML2PHP

Notice: I highly recommend that you do not encapsulate your html as PHP. There’s not enough performance gain (probably a degradation in performance) and editing html within php echo calls is just insane (as I was when I wrote this.) If you have a purpose to use this software (or modify it for a more appropriate purpose. then read on…

Here’s my answer as a replacement for a much-used html-to-php formatter called HTML2PHP. The original HTML2PHP, that I used so often, was written in .NET. Since I switched to Ubuntu, it didn’t work for me anymore. Since HTML2PHP’s desired functionality was so simple (wrap php commands around formatted text,) I just wrote my own (albeit very limited in features) version in mono and gtk for Linux.

In case you’re wondering what it does…it simply takes html code and wraps it inside a string with your choice of output commands (defaults to echo.) It makes any string escapes necessary. It is usefully when you design Web UI like me. I start with html formatted the way I like it and then I code in the dynamic parts of the page around and within my html code. If this is useful to you….enjoy!

You can download it here

Requirements: Linux, Gnome, Mono