Bluefish mediawiki editor: Difference between revisions

From Bluefish Wiki
Jump to navigation Jump to search
m (Created page with 'Bluefish can easily be used as an external editor through [https://addons.mozilla.org/fr/firefox/addon/4125 It's All Text! ] Linux: After installing It's All Text! One must b…')
 
 
(5 intermediate revisions by the same user not shown)
Line 16: Line 16:
* Add the extension .wiki at the beginning of the list of file extensions, making it the default extension.
* Add the extension .wiki at the beginning of the list of file extensions, making it the default extension.
configure Bluefish-unstable :
configure Bluefish-unstable :
* Put mediawiki.xml mediawiki.bflang2 mediawiki_snippets.xml files in your home directory ~/.bluefish
* Put [[mediawiki.xml]] and [[Bluefish_mediawiki_snippets|mediawiki_snippets.xml]] files in your home directory ~/.bluefish
* As root, put mediawiki.xml in $XDG_DATA_DIRS/mime/packages :
* As root, put mediawiki.xml in $XDG_DATA_DIRS/mime/packages :
  <tt>'''#''' cp .bluefish/mediawiki.xml /usr/local/share/mime/packages/</tt>
  <tt>'''#''' cp .bluefish/mediawiki.xml /usr/local/share/mime/packages/</tt>
Line 24: Line 24:
* Open Bluefish and update the basis of snippets.
* Open Bluefish and update the basis of snippets.
   
   
If you do not have root access, or if you prefer not to put non-standard things in the mime database, you can install in $XDG_DATA_HOME
If you do not have root access, or if you prefer not to put non-standard things in the mime database, you can install in $XDG_DATA_HOME   
 
  <tt>'''$''' mkdir -p ~/.local/share/mime/packages</tt>
 
  <tt>'''$''' mkdir ~/.local/share/mime/</tt>
  <tt>'''$''' mkdir ~/.local/share/mime/packages</tt>
  <tt>'''$''' cp ~/.bluefish/mediawiki.xml  ~/.local/share/mime/packages/</tt>
  <tt>'''$''' cp ~/.bluefish/mediawiki.xml  ~/.local/share/mime/packages/</tt>
  <tt>'''$''' update-mime-database ~/.local/share/mime/</tt>
  <tt>'''$''' update-mime-database ~/.local/share/mime/</tt>
== See also: ==
[[Using File Type Icons in Bluefish 2|Using File Type Icons in Bluefish 2]]

Latest revision as of 02:54, 27 July 2010

Bluefish can easily be used as an external editor through It's All Text!

Linux:

After installing It's All Text! One must be set

  • Open a page of wikipedia, editing
  • Right click on the form, choose It's All Text! → Preferences
Error creating thumbnail: File missing
  • Fill in the fields Editor
    • we need a script to run the editor, I use this one:
#!/bin/sh
bluefish -c "$@"
  • edit this script and make it executable : $ chmod a+x bf.sh.
  • Add the extension .wiki at the beginning of the list of file extensions, making it the default extension.

configure Bluefish-unstable :

# cp .bluefish/mediawiki.xml /usr/local/share/mime/packages/
  • And update the basis of mime types:
# update-mime-database /usr/local/share/mime/
  • Reclaim user
  • Open Bluefish and update the basis of snippets.

If you do not have root access, or if you prefer not to put non-standard things in the mime database, you can install in $XDG_DATA_HOME

$ mkdir -p ~/.local/share/mime/packages
$ cp ~/.bluefish/mediawiki.xml  ~/.local/share/mime/packages/
$ update-mime-database ~/.local/share/mime/


See also:[edit]

Using File Type Icons in Bluefish 2