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…')
 
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 mediawiki.bflang2 mediawiki_snippets.xml files in your home directory ~/.bluefish
* Put [[mediawiki.xml]] and [[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>

Revision as of 15:55, 31 December 2009

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/