Templates: Difference between revisions

From Bluefish Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 10: Line 10:
{{toc}}
{{toc}}


= Using templates =


<tt>File → New From Template</tt> let you to create a new page choosing a template.
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>
 
= Setting up templates =
 
== Bluefish versions prior to 2.2.6 ==


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


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 (on Linux in /usr/share/bluefish/templates) or user specific templates (on Linux in ~/.bluefish/templates/). Any file available in that directory will be scanned at bluefish startup, and will become available in the templates menu.
== 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





Latest revision as of 12:02, 23 July 2016

 

Using templates[edit]

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[edit]

Bluefish versions prior to 2.2.6[edit]

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

Bluefish versions 2.2.6 and higher[edit]

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[edit]

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

User specific: ~/.bluefish/templates/

Directories for templates on Windows[edit]

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

User specific: ~/.bluefish/templates/

Predefined templates[edit]

Bluefish is installed with 5 predefined templates:

C header

C header GPL

HTML 5

PHP

XHTML 1.0