Category:Snippets repository: Difference between revisions

From Bluefish Wiki
Jump to navigation Jump to search
Fal7i (talk | contribs)
mNo edit summary
Fal7i (talk | contribs)
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
In Bluefish 2 Custom menu is replaced by Snippets in left panel.<br />
In Bluefish 2 Custom menu is replaced by Snippets in left panel.<br />
Bluefish_2 become without any snippets, you have to [[:Category:Snippets repository|import]] or create them.
Bluefish_2 become without any snippets, you have to [[Snippets_plugin#Import_snippets|import]] or create them.
{{note|text= To import your Bluefish_1 Custom menu in snippets you can use Olivier's python script [[convert_custom_menu_to_snippets.py]].
{{note|text= 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
*put convert_custom_menu_to_snippets.py in ~/.bluefish/ directory
*make the script executable: <tt>'''$''' chmod a+x convert_custom_menu_to_snippets.py</tt>
*make the script executable: <tt>'''$''' chmod a+x convert_custom_menu_to_snippets.py</tt>
*run the script:<tt>'''$''' ./convert_custom_menu_to_snippets.py > mysnippets.xml</tt>
*run the script: <tt>'''$''' ./convert_custom_menu_to_snippets.py > mysnippets.xml</tt>
* import mysnippets.xml in your snippets plugin.
* import mysnippets.xml in your snippets plugin.
}}
}}


{{tip|text=To make a xml file you have to select text from <?xml version="1.0"?> to </snippets> copy your selection in Bluefish and save the file as something.xml. After that you can [[Snippets_plugin#Import_snippets|import]] it. }}
{{tip|text=To make a xml file you have to select text in the '''edit''' (or the '''view source''' if you are not loggin in) page<br />from <tt><?xml version="1.0"?></tt> to <tt></snippets></tt> <br />copy your selection in Bluefish and save the file as something.xml. <br />After that you can [[Snippets_plugin#Import_snippets|import]] it. }}


Snippets are available below, <tt>Bluefish xxx snippets</tt>. Feel free to add yours!
Snippets are available below, <tt>Bluefish xxx snippets</tt>. Feel free to add yours!
{{warning|text= '''Do not copy the files from the page!'''<br /> but from the '''edit''' (or the '''view source''' if you are not loggin in).}}

Latest revision as of 22:19, 7 March 2010

In Bluefish 2 Custom menu is replaced by Snippets in left panel.
Bluefish_2 become without any snippets, you have to import or create them.

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
  • run the script: $ ./convert_custom_menu_to_snippets.py > mysnippets.xml
  • import mysnippets.xml in your snippets plugin.
To make a xml file you have to select text in the edit (or the view source if you are not loggin in) page
from <?xml version="1.0"?> to </snippets>
copy your selection in Bluefish and save the file as something.xml.
After that you can import it.

Snippets are available below, Bluefish xxx snippets. Feel free to add yours!

Do not copy the files from the page!
but from the edit (or the view source if you are not loggin in).