You can configure the code editor Bluefish to use Tidy to pretty print files.
Naturally, you will need to have Bluefish and Tidy installed.
In Edit – Preferences – External filters, press “Add”. A new entry labeled “Untitled” will appear. Select and then click it to edit its name. Rename it to something like “Tidy Pretty Print” and press enter to apply it. Now click to the right of the new name, in the “Command” column, to enter a command. Enter the following:
| tidy -indent -latin1 -f /dev/null -wrap 72 -m |
Adjust Tidy’s options to your preferences (see man tidy). Press enter to apply it. Now close the Preferences window by pressing “OK”.
To use, simply go to Tools – Filters – Tidy Pretty Print, and your file will be pretty printed.