Bluefish mediawiki editor: 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 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]] and [[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 ~/.local/share/mime/</tt>
  <tt>'''$''' mkdir ~/.local/share/mime/</tt>
  <tt>'''$''' mkdir ~/.local/share/mime/packages</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>

Revision as of 12:55, 5 January 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 ~/.local/share/mime/
$ mkdir ~/.local/share/mime/packages
$ cp ~/.bluefish/mediawiki.xml  ~/.local/share/mime/packages/
$ update-mime-database ~/.local/share/mime/