Autocompletion: Difference between revisions

From Bluefish Wiki
Jump to navigation Jump to search
Fal7i (talk | contribs)
mNo edit summary
Fal7i (talk | contribs)
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 3: Line 3:
|rev=2.0.0
|rev=2.0.0
|st=d
|st=d
|Title=2. Autocompletion
|Title=Autocompletion
|prev=Man 2 ch07
|prev=Indenting
|Subtitle=Chapter VII. More than a Text Editor
|Subtitle=More than a Text Editor
|next=Man 2 ch07s03
|next=Hidden features
}}
}}


== Bluefish 1 ==
By default, Bluefish will automatically produce closing tags for HTML and XML documents. For example, if you type <tt><nowiki><p></nowiki></tt> within an HTML document, bluefish will produce <tt><nowiki></p></nowiki></tt>. So, as soon as you finish typing a non-empty HTML tag, meaning the tag is supposed to have a closing tag, Bluefish will help you out and close the tag automatically. This feature can be turned off by unchecking the Document → Auto Close HTML Tags ('''Ctrl+T''') menu option.
By default, Bluefish will automatically produce closing tags for HTML and XML documents. For example, if you type <tt><nowiki><p></nowiki></tt> within an HTML document, bluefish will produce <tt><nowiki></p></nowiki></tt>. So, as soon as you finish typing a non-empty HTML tag, meaning the tag is supposed to have a closing tag, Bluefish will help you out and close the tag automatically. This feature can be turned off by unchecking the Document → Auto Close HTML Tags ('''Ctrl+T''') menu option.


Line 15: Line 16:
Bluefish will choose the mode based on the file type of the document. In the filetype preferences panel, the default mode for each file type can be set. See [[Man 2 ch08s10| Section 10, “Modifying file types”]] for more info.
Bluefish will choose the mode based on the file type of the document. In the filetype preferences panel, the default mode for each file type can be set. See [[Man 2 ch08s10| Section 10, “Modifying file types”]] for more info.


== Bluefish 2 ==
* general setting: see Preferences [[Preferences#Non-project initial documents settings|Non-project initial documents settings]] [[Preferences#Generic editor settings|Generic editor settings]]
* per project: see [[Projects]]
* per document type: see Preferences [[Preferences#Advanced syntax scanning option|Advanced syntax scanning option]] [[Preferences#Languages|Languages]]
{|
| [[File:Man2 autocompletion 01.png|none|frame|?]]
|
|-
| [[File:Man2 autocompletion 02.png|none|frame|?]]
|
|-
| [[File:Man2 autocompletion 03.png|none|frame|?]]
|
|-
| [[File:Man2 autocompletion 04.png|none|frame|?]]
|
|-
| [[File:Man2 autocompletion 05.png|none|frame|?]]
|
|-
| [[File:Man2 autocompletion 06.png|none|frame|?]]
|
|}




{{Man2bottom
{{Man2bottom
|prev=Man 2 ch07
|prev=Indenting
|up=Man 2 ch07
|up=Man 2 ch07
|next=Man 2 ch07s03
|next=Hidden features
|prevname= Chapter&nbsp;VII.&nbsp;More than a Text Editor
|prevname=Indenting
|nextname= 3.&nbsp;Spell checker
|nextname=Hidden features
}}
}}

Latest revision as of 10:27, 20 July 2010


Bluefish 1

By default, Bluefish will automatically produce closing tags for HTML and XML documents. For example, if you type <p> within an HTML document, bluefish will produce </p>. So, as soon as you finish typing a non-empty HTML tag, meaning the tag is supposed to have a closing tag, Bluefish will help you out and close the tag automatically. This feature can be turned off by unchecking the Document → Auto Close HTML Tags (Ctrl+T) menu option.

Bluefish has two modes for tag closing, an XML mode and an HTML mode. In XML mode, Bluefish will add a closing tag to any tag that is not closed itself with />. In HTML mode, Bluefish excludes all known tags that do not need a closing tag, such as <br> and <img>.

Bluefish will choose the mode based on the file type of the document. In the filetype preferences panel, the default mode for each file type can be set. See Section 10, “Modifying file types” for more info.

Bluefish 2

?
?
?
?
?
?