- Introduction
- Screen Shots
- How GTidy Works
- Some of GTidy ability
- Download program
- Source Code
- Credits
- ToDo List
- Bugs
- About
- Contact
Introduction
I recently rediscovered GTidy and noticed the original website is no longer available. This version is a reconstruction, rebuilt from the surviving source material. More on this later.
GTidy is a simple GUI for tidy. This program compiled with Borland Delphi 7 and uses the HTML Tidy console program to clean html pages. Tidy is an open source library and powerful tool for cleaning up html files. This program is a console program and its easy to made a mistake when using this program. So I have created this program to use Tidy with friendly GUI in windows.
This program just a start point for my work on Tidy. I have some ideas for making GTidy better.
Screenshots
How GTidy works
GTidy is a simple program. It launches HTML Tidy, and then writes the input html in standard input console (stdin) and then capture stdout and stderr for result.
Some of GTidy ability:
- Ability to add option for Tidy in all Tidy option type (Autobool,Bool,String,DocType,Integer,Encoding,Tag list).
This makes it possible to use this program with any other version of tidy. - Highlight Html (Thanks to SynEdit developers).
- Simple Error parser to get error and warning position.
Download program
You can download GTidy Installer This package contains tidy.exe and quickref.htm and overview.htm. This installer created with NSIS (See Source Code section). -Thanks to sourceforge.net
Source code
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See MPL (Mozilla Public License) for mor detail.
GTidy is open source program (Just like Tidy!). This program is not a great program. All work done with Tidy and GTidy is a tool for make it easier for user. GTidy code published under MPL (Mozilla Public License). Source code has an installer and you can download GTidy Source code and you need some component to compile it with Delphi 7 (or download). List of that components:
- Syntax highlighter for Delphi http://SynEdit.SourceForge.net
- XP Menu from http://Shagrouni.com/
- If you wish to create installer you need NSIS from http://NSIS.SourceForge.net
You can ignore all of them. Just use a TMemo instead of TSynEdit and ignore TXPMenu component. (I recommend you to use TSynEdit but you can ignore XPMenu and you lose nothing!) I use version 1.1 of synedit. It have Delphi 6 package and you need to made some change to compile it with Delphi 7. You must define
{$IFDEF VER150}
{$DEFINE SYN_COMPILER_6}
{$DEFINE SYN_DELPHI}
{$DEFINE SYN_DELPHI_6}
{$ENDIF}
In SynEdit.inc file. Now it must work.
After all you need tidy console executable. tidy.exe and quickref.htm and overview.htm included in installer. You can use any newer version of program. Visit tidy home page at : http://tidy.SourceForge.net for latest version of tidy.
Credits and logos...
To do list
Its just an start point for this project and this far from complete ;). There is a list (Not all, just that I remember) :
- Add save to config file in tidy param builder dialog
- Add shell menu for htm and html files, And some other shell handler (like drag and drop)
- Add some editing tool for html input page such as highlighter setting.
- Add reset to default for tidy param builder
- Add group filter for options in param builder (Important task).
- Add some icon and group to error panel (Format messages)
- Change program from single document to multi document interface (SDI to MDI)
- Add documentation (Long time ....)
- Change "Options.tidy" format (may be I change it to xml but I have no time for this, yet)
- Add write back button (Replace input with result).
- Add preview in browser (Or embeded browser)
Bug List
- There is no bug... YET!!! (except my English: Its very bad!!! Please help me to create (and/or fix) this page and documentation)
©Copyright Cyber Rabbits All Right Reserved
About
I recently rediscovered GTidy and noticed that the original website is no longer available. This version is a reconstruction based on the original, rebuilt from the surviving source material.
As an amateur web developer who enjoys hand-coding websites, I was looking for a GUI front-end for HTML Tidy and came across this one from around 2004. One of the advantages of GTidy is that, once installed, you can simply replace the bundled Tidy executable with the most current version. This gives you an up-to-date HTML Tidy engine while keeping the familiar GTidy interface.
I've found GTidy extremely useful, and with the original site long gone, I tracked down an archived copy on the Wayback Machine. Since the archive can be slow at times, I've included a local copy of the original website here for posterity.
