Templates: Difference between revisions

From Bluefish Wiki
Jump to navigation Jump to search
Fal7i (talk | contribs)
m moved Man 2 Templates to Templates: `Man 2` not in title now
Ralf (talk | contribs)
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Man2top
|lang=en
|rev=2.0.0
|st=u
|Title=Templates
|prev=Man 2 ch06s05
|Subtitle=Chapter VI. Navigation and Managing documents
|next=Man 2 ch07
}}
{{toc}}


= Using templates =


[[File:Man2 templates default.png]]
With<tt> File → New From Template</tt> you can create a new page choosing a template.  


If you want all new files to be created with a specific template, you can change the settings through <tt>File → Preferences → Initial document settings</tt>


[[File:Man2 project new dialog.png]]
= Setting up templates =


== Bluefish versions prior to 2.2.6 ==


Older Bluefish versions have the available templates configured in the preferences panel.


[[File:Man2 templates preferences.png]]
== Bluefish versions 2.2.6 and higher  ==
 
From Bluefish 2.2.6 on templates are no longer configured in the preferences, but are loaded from disk. You can have system-wide installed templates or user specific templates. Any file available in that directory will be scanned at bluefish startup, and will become available in the templates menu.
 
=== Directories for templates on Linux ===
 
System-wide: /usr/share/bluefish/templates
 
User specific: ~/.bluefish/templates/
 
=== Directories for templates on Windows ===
 
System-wide: DIRECTORY_TO_BLUEFISH/share/bluefish/templates/
 
User specific: ~/.bluefish/templates/
 
=== Predefined templates ===
 
Bluefish is installed with 5 predefined templates:
 
C header
 
C header GPL
 
HTML 5
 
PHP
 
XHTML 1.0
 
 
 
 
 
 
{{Man2bottom
|prev=Man 2 ch06s05
|up=Man 2 ch06
|next=Man 2 ch07
|prevname= 5. Find and Replace
|nextname= VII. More than a Text Editor
}}

Latest revision as of 12:02, 23 July 2016

 

Using templates

With File → New From Template you can create a new page choosing a template.

If you want all new files to be created with a specific template, you can change the settings through File → Preferences → Initial document settings

Setting up templates

Bluefish versions prior to 2.2.6

Older Bluefish versions have the available templates configured in the preferences panel.

Bluefish versions 2.2.6 and higher

From Bluefish 2.2.6 on templates are no longer configured in the preferences, but are loaded from disk. You can have system-wide installed templates or user specific templates. Any file available in that directory will be scanned at bluefish startup, and will become available in the templates menu.

Directories for templates on Linux

System-wide: /usr/share/bluefish/templates

User specific: ~/.bluefish/templates/

Directories for templates on Windows

System-wide: DIRECTORY_TO_BLUEFISH/share/bluefish/templates/

User specific: ~/.bluefish/templates/

Predefined templates

Bluefish is installed with 5 predefined templates:

C header

C header GPL

HTML 5

PHP

XHTML 1.0