User to user discussion and support for UltraEdit, UEStudio, UltraCompare, and other IDM applications.

Help with setting up and configuring custom user tools in UltraEdit (based on command line input)
7 posts Page 1 of 1
Does it have a purpose? If one isn't selected, Tidy fails. If I just make an empty text file someplace and select it, Tidy runs fine, but what is the point of the exercise? It's still empty when I'm done. The help file is less than illuminating on the subject.
UltraEdit supports HTML Tidy since v8.00. The Tidy options could be only set by creating a Tidy config file manually and also manually adding this config file to following entry in the uedit32.ini (example) prior UltraEdit v11.00:

Html Tidy Config File=C:\Programs\UltraEd\Config\Htmltidy.cfg

I have for example following settings in this file:

doctype: auto
tidy-mark: no
wrap: 125
quiet: yes

This HTML Tidy support uses the DLL Htmltidy.dll which must be downloaded from world wide web and copied by the user itself to the program directory of UltraEdit. This HTML Tidy support is not present anymore in a menu since UltraEdit v11.00, but can still be used with a hotkey which must be assigned to command FormatHtmlTidy in the key mapping configuration dialog.

IDM improved the HTML Tidy support with UltraEdit v11.00. Now HTML Tidy is installed and updated with an UltraEdit install/update because the code is now in the DLL tidylib.dll in the UltraEdit program files directory and this DLL is also in the UE install setup package.

This second HTML Tidy support is executed by clicking on menu item Run HTML Tidy in menu Format HTML Validation or the appropriate toolbar button.

Most options of HTML Tidy can be set directly within UltraEdit in a dialog since v11.00. These options are saved in uedit32.ini at section [HTMLTidyOptions].

These Tidy options are used during Tidy execution if you do not specify a Tidy configuration file. If you specify a Tidy configuration file in the dialog, the Tidy options in the uedit32.ini are ignored and the options in the configuration file are used. (I think so, because I have not really tested it.)

With such a configuration file you can specify all Tidy options. For example the quiet option from my example above is not available in the Tidy options dialog of UltraEdit. If you specify a Tidy configuration dialog in the Tidy dialog this specification is saved in the uedit32.ini as follows:


A second advantage of using a Tidy configuration file is that you can create several configuration files with different settings. Then you can easily switch to a different set of Tidy options by simply selecting a different configuration file.

If you have UltraEdit v11.00 or higher you can choose between the "old" Tidy support with the Htmltidy.dll or the "new" one with the Tidy dialog and the tidylib.dll. You can also use both simultaneously.

For details about the Tidy configuration file read as help of UltraEdit already suggests the HTML Tidy Quick Reference and also the full HTML Tidy Manual.

Edited on 2006-10-29: With UltraEdit v12.20 and UEStudio v6.00 the key mapping configuration dialog has bee modified to support multi-key assignments (chords). On first start of UE/UES after an upgrade the existing *.kbd file is converted to an equivalent *.uek file.

In the new key mapping configuration dialog the command FormatHtmlTidy is not associated anymore internally to the HTML Tidy support with Htmltidy.dll. It's now assigned to the new HTML Tidy command available also in the Format menu.

An existing key assignment in the *.kbd file for the support for Htmltidy.dll is nevertheless still working in the converted *.uek file because it is still assigned to internal command ID named ID_HTMLTIDY. So be careful if you want to use still the first method like I. Do not destroy your converted *.uek file or reassign the hotkey for ID_HTMLTIDY by mistake to a different command.

I have sent a request email to IDM that the developers should add a command with small description for ID_HTMLTIDY so users like I who want to continue to use the Htmltidy.dll version can assign a hotkey for the command in the new key mapping configuration dialog.

Edited on 2007-06-13: And IDM meets my wish and implemented the command RunHTMLTidy in the key mapping configuration dialog of UltraEdit v13.10 and UEStudio v6.30 to be able to assign a hotkey to fast execute HTML Tidy with Htmltidy.dll as I still like it. Thanks IDM!
Best regards from Austria
Thank you for the patient reply.
Where do I actually download the configuration file? I visited the HTML Tidy website, but it was a bit confusing.
You can't download an HTML Tidy configuration file. You have to create it manually with a text editor like UltraEdit. The HTML documentation only describes which settings are possible in this configuration file and which effect they have. It is a documentation and not a config file. HTML Tidy has no GUI where you can click on configuration options and the appropriate actions are done to save it in a text file (INI file) like a Windows GUI application normally does. You must enter character for character in the configuration file manually as in old DOS days.

At you can see a sample config file which maybe can help you to start.
Best regards from Austria
Why can't the editor create it automatically?
Why should UltraEdit become an HTML Tidy configuration file creation and editing tool?

UltraEdit is designed as a very powerful general text editor. It is not designed to be an HTML Tidy configuration file creation and editing tool.

UltraEdit stores the HTML Tidy options in INI file of UltraEdit using the same code as for all other settings in its INI file. The DLL contains functions directly called by UltraEdit with the appropriate function parameters.

A feature to export HTML Tidy options to a valid HTML Tidy configuration file would require extra code which must be written, tested and in future updated and tested again on updating to a new version of HTML Tidy. What do you think how many UltraEdit users would like to have an export HTML Tidy options feature? Two users from two millions of UltraEdit users?

V@no, if you have time for writing a Windows GUI application for reading HTML Tidy options from an HTML Tidy configuration file, present them in a nice and easy to use GUI window for modification and save the presented options into an HTML Tidy configuration file, please feel free to code this application and make it public. I'm quite sure the HTML Tidy users community would welcome your application. But I am also sure that nobody would pay for it. So better design the application as open source or freeware application from the beginning.
Best regards from Austria
7 posts Page 1 of 1