prev | contents | next

Chapter 2: Using Bluefish features

In the first chapter, we covered the basic concepts of using Bluefish. Though many of the possibilities and usages this program has, not all of them were mentioned, whereas those mentioned weren't thoroughly explained. Most importantly, you haven't learnt how to configure the program yet (apart from a few basic stuff that GTK+ itself allows you).

The purpose of this chapter is to cover all features of Bluefish in detail, so that you can take full advantage of them. We will explain how you can configure Bluefish (like window appearance, syntax highlighting, fonts, etc.), how to use external programs and view your documents, the thumbnails, and many more features.

The Preferences window

Most of the program's settings can be adjusted through the Preferences window. To call this window:

A window should pop up, with five tabs at the bottom and two buttons. Save & Close saves any changes you have made and saves them to disk. These settings will be re-loaded in the future sessions. In case you've changed your mind about the changes you made, press Cancel and the previous settings will be restored.

Editor Preferences

Editor tab

Default font

In this textbox, you can set the font of the text editing area. Though you can try to write the font manually, it is preferable to click on Font... button. A window pops up in which you can set the font, its style and size. At the bottom, you can preview the font you have selected. The 'Filter' tab will help you select the font you want, by selecting the features it should have. 'Font Information' shows the info for the selected font. To set the font, press Ok. If you press Apply, the font is set, but this dialog doesn't disappear, so that you can re-adjust the font selected. Press Cancel if you've changed your mind about selecting a different font.

TIP: Most users prefer to select fixed-width fonts. As you will see, fixed width fonts are better for any code editors, including HTML. It will help you organise your documents better and is highly advised if you're using <PRE> tag, as you can see how the text will actually appear. Adobe courier is often available and is strongly suggested for usage.

Tab width

This adjusts the width that Tab characters will have. This is measured in compare with empty space characters. So, if you've set it to value 4, for example, in a fixed-width font, it will look like there were 4 space characters there.

The default tab width is 4.

Word Wrap

You will usually want to use this feature together with 'Line Wrap'. If this is checked, then the word typed will be wrapped to the next line if the text reaches the right border of the text editing area (without a line feed character placed).

Line Wrap

If this is checked, then when the text typed reaches the right border of the text editing area, it continues to the next line (without a line feed character).

NOTICE: A bug in the Gtk Text widget disables the horizontal scrollbar, so disabling word and line wrap will make editing a bit uncomfortable. Just try it out and you will see :-)

If you have this feature checked and not 'Word Wrap', then the words may be broken in two lines, whereas if 'Word Wrap' is checked the letters stay all together.

Highlight by default

If checked, when an action, like opening a file is done, the text is hightlighted automaticly, thus you don't need to select View->Highlight Syntax yourself. If, however, you uncheck it, then the text won't be highlighted unless you ask for it.

Update syntax highlighting continuous

If checked, the syntax will be automaticly highlighted as you type the text.

Update full widget instead of the current line

Normally, when text is highlighted in the text editing area, only the line in which the cursor is placed will be highlighted and not the whole text. When pasting multiple lines some lines will not ne highlighted correctly. You could use F5 (default shortcut for View->refresh highlighting) to refresh. If however you want to check and highlight the whole text each time you edit the document, then check this option. Unfortunately updating the whole widget is slow in the GTK text widget due to a scrolling bug.

Automatic link management

If you enable this option Bluefish will update any links when using 'move to' or 'save as' functionality. Only links found between double quotes (i.e. "link") are scanned and updated.

HTML Preferences

HTML tab

Insert closing...

As you know, all HTML tags usually have to be ended with a </tag> comment. For example <B>Bold text</B>. However some tags can be (and usually are) used without an ending tag. Two of them are <LI> and <P>, which don't really need an ending tag. However, if you want to strictly follow the HTML syntax rules, you might want to insert them.

If the boxes are checked, then the ending tags are inserted for <LI> and <P>, else they are omitted.

Insert lowercase HTML tags

By default, when a tag is inserted by Bluefish, it is in uppercase (this is a common designer's technique in order to distinguish tags from normal text). However, in case you want the tags to be in lowercase, check this box.

Note that WML needs the tags to be lowercased, so you should check this, should you want to use WML.

Default charset

This does not have any functionality yet.

Main GUI options

GUI tab

Notebook tab font

This works exactly as in the Editor tab, only that it sets the font of the tabs in the editing area (i.e. the tabs that contain the names of the files opened). It is advised that you keep it to a small simple font.

Notebook position

By default, the tabs are in top of the text area. If, however, you find them more comfortable in another position, you can set them at the bottom, right and left of the text area.

To select another position, press the button on the right and a list of the positions will appear, from which you can select the prefered position. Note that you can also change the position with the Up and Down cursors.

Initial width & height

These two variables set the width and height of the main window.

To adjust the width & height to your preferences, you can either write the new values or use the up/down button at the right, which will increase and decrease the value by 5. Furthermore, if you press the Up and Down cursors, the value will also be increased or decreased by 5.

The default values are 600 for width and 400 for height.

Image Dialog options

Image dialog tab

Thumbnail type

Thumbnail extension string

External program options

External tab

Browser command

WHAT IS...:Though I am sure you've heard of Netscape, just in case you don't know what it is, Netscape is one of the oldest, best and widely-used web browsers in Unices (but also in Windows). Actually, Netscape is the name of the company which built it, but is usually called this way instead of Netscape Navigator (or Netscape Communicator, which contains more than the web browser). Most systems (like Linux distributions and Solaris) come with Netscape installed.

This refers to the View->View in Netscape function. With this function, you can view your document in Netscape, so as to preview how it looks like so far.

Normally, you don't have to change this, but in case the default setting doesn't work, you can write the command and parameters, just like if you were calling the program from bash. The only thing you must note is to put %s at the place where the filename would normally be placed (Bluefish will replace that with the filename automaticly).

The default setting is: netscape -remote OpenUrl\(%s\)

Weblint command

prev | contents | next