File Types (1/2)
this page is updated for Manual 2. It needs to be verified! once you have verified this page (and corrected if necessary) please modify the status to v (verified), i.e. st=v (see Guidelines for Writing this Manual)
Different file types can change the behaviour of Bluefish. File types are recognized by their MIME type (which is defined by the combination of the file name extension and the beginning of the file's contents). The current document type is shown in the far right of the status bar. If the type of a file is not properly detected, you can change the type using the Document → Langage Mode menu.
11.1. Syntax highlighting
Syntax highlighting is the coloring of words that have special meaning for a language. The patterns can vary: for example, "<title>" means "start of title" in HTML, "function" means "start of function" in PHP.
If for any reason the syntax highlighting is incorrect, you can refresh the syntax highlighting for the total document using the Document → Rescan Syntax & Spelling (F5) menu. Syntax scanning can be disabled/enabled with Document → Highlight Syntax.
For more information about adding or modifying syntax highlighting for existent or new languages, see Modifying the highlighting patterns.