I asked a similar question on webmasters.stackexchange.com and was directed here.

How do I format code in Bluefish HTML editor? There's auto-indenting, that's easy enough to find. Is there a button I can click after selecting all the text? Because I sure can't seem to find it.

  • Which version of Bluefish?
    – iglvzx
    Apr 28, 2012 at 7:14
  • I'm using Bluefish 2.0.3 on Fedora 16. I installed through yum Apr 28, 2012 at 7:23

1 Answer 1


For html files I could find this functionality under Tools -> Filters -> Tidy HTML. Notice that you need HTML Tidy installed1. I personally prefer to also have the file auto-indented: Edit -> Preferences -> External filters -> Tidy XML: |tidy -i|.

Additionally, for xml files you can add a new "Tidy XML" label with corresponding command |tidy -xml -i|.

1 In Gentoo: sudo emerge -v app-text/htmltidy; in Debian, sudo apt-get install tidy; in Fedora, I would guess sudo yum install tidy?

  • The above Bluefish command is similar to typing the command tidy -im file.html in a bash shell, outside of Bluefish. Just mentioning this as the builtin filter gave an error for me.
    – Roland
    Oct 8, 2016 at 15:10
  • my new, default installation of bluefish (on ubuntu 17.04) used perltidy as the html tidy tool, requiring it to be installed first, rather than html tidy, which I did already have installed. It does seem to depend on which menu option one is actually invoking; some use tidy, some perltidy(viewing the preferences "external filters" shows which tools need to be used)
    – michael
    Dec 11, 2017 at 11:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.