Snippets plugin: Difference between revisions

From Bluefish Wiki
Jump to navigation Jump to search
Fal7i (talk | contribs)
mNo edit summary
Fal7i (talk | contribs)
mNo edit summary
Line 10: Line 10:


{{toc}}
{{toc}}
The snippets plugin allows you to record reusable pieces of code. There are two categories of snippets:
* insert strings
* search and replace patterns
Snippets are organized in branches. The first time you open Bluefish 2 you have no snippets. You have to create them, or import a set of snippets.
;Bluefish 1.3 users:
: you can copy your olds snippets to Bluefish 2<br /><tt>cp ~/.bluefish-unstable/snippets  ~/.bluefish/</tt>
;Bluefish 1.0 users:
: to import your Bluefish 1 Custom menu in snippets you can use Olivier's python script [[convert_custom_menu_to_snippets.py]].
*put convert_custom_menu_to_snippets.py in ~/.bluefish/ directory
*make the script executable: chmod a+x convert_custom_menu_to_snippets.py and run the script.
; You also can find useful snippets in [[:Category:Snippets repository|Snippets repository ]]
{{clear}}
{{clear}}


== Import snippets ==
== Import snippets ==

Revision as of 12:01, 7 January 2010


 

The snippets plugin allows you to record reusable pieces of code. There are two categories of snippets:

  • insert strings
  • search and replace patterns

Snippets are organized in branches. The first time you open Bluefish 2 you have no snippets. You have to create them, or import a set of snippets.

Bluefish 1.3 users
you can copy your olds snippets to Bluefish 2
cp ~/.bluefish-unstable/snippets ~/.bluefish/
Bluefish 1.0 users
to import your Bluefish 1 Custom menu in snippets you can use Olivier's python script convert_custom_menu_to_snippets.py.
  • put convert_custom_menu_to_snippets.py in ~/.bluefish/ directory
  • make the script executable: chmod a+x convert_custom_menu_to_snippets.py and run the script.
You also can find useful snippets in Snippets repository



Import snippets

lorem ipsum
lorem ipsum
lorem ipsum
lorem ipsum

Category:Snippets repository

Create snippets

lorem ipsum
lorem ipsum
lorem ipsum
lorem ipsum

lorem ipsum

Reorder snippets

lorem ipsum

lorem ipsum