Pretty printing files with Tidy within Bluefish

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.

Advertisements

About Warren Post

So far: Customer support guy, jungle guide, IT consultant, beach bum, entrepreneur, teacher, diplomat, over-enthusiastic cyclist. Tomorrow: who knows?
This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

2 Responses to Pretty printing files with Tidy within Bluefish

  1. Pingback: Using Bluefish | A maze of twisty little passages

  2. Bong says:

    Command returned error code
    The command tidy -indent -latin1 -f /dev/null -wrap 72 -m exited with error code 512.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s