Monday, October 24, 2011

tidy reformat beautify html xml gedit


Using tidy.sourceforge.net
==========================
sudo apt-get install tidy
sudo apt-get install gedit-plugins

Under Plugins Tab:
Enable External tools

(My note on tidy is here)



Using PHP_Beautifier
======================
http://pear.php.net/package/PHP_Beautifier
This tool will not be able to beautify inline html and php together.

sudo apt-get install php-pear
# Still in Beta state

sudo pear install PHP_Beautifier
sudo pear install PHP_Beautifier-0.1.15.tgz

php_beautifier -s4 -l "ArrayNested() IndentStyles(style=bsd) NewLines(before=if:switch:while:for:foreach:function:T_CLASS:return:break,after=T_COMMENT)"


Full instruction at http://www.masnun.me/2010/04/10/using-gedit-as-a-php-ide.html


Plug-in
=====
http://yuix.org/web-development/ubuntu-11-10-oneiric-ocelot-gedit-indent-lines-plugin/184



More info
==========
gedit-3 : http://live.gnome.org/Gedit/Plugins#third_party
gedit-2 : http://live.gnome.org/Gedit/PluginsOld

http://www.micahcarrick.com/gedit-html-editor.html

No comments:

Post a Comment